Go Back   Web Server Hosting Forum by BODHost > Support > MySQL Issues.
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-07-07, 08:49
BOD Member
 
Join Date: Nov 2006
Posts: 271
Default Process of Changing MySQL timezone

As default <a href="http://www.bodhosting.com/ " target="_blank" title=" MYSQL " style="color:#000000;text-decoration:none;">MYSQL</a> timezeon is set as GMT - 7 / MST. You can set one 1 timezone per mysql daemon.

All you require to do is to change the following SQL queries SELECT NOW(); with SELECT DATE_ADD(NOW(), INTERVAL 2 HOUR); This will result in Eastern Standard Time.

If you require to set in PST, then replace the following -

SELECT DATE_SUB(NOW(), INTERVAL 1 HOUR);

In order to set MSN into EST, follow the following -

SELECT unix_timestamp() + (3600 * 2);
SELECT FROM_UNIXTIME(UNIX_TIMESTAMP() + (3600 * 2));

However, in accordance to your application. you will require to do the following -

a) Search for places in cost where the time and date is displayed in the browser. Then, use a defined function change in order to add or subtract the numbers of hours before displaying.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 02:00.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.