:: DEVELOPER ZONE
If you have a problem with SELECT NOW() returning
values in GMT and not your local time, you have to tell the server
your current time zone. The same applies if
UNIX_TIMESTAMP() returns the wrong value. This
should be done for the environment in which the server runs; for
example, in mysqld_safe or
mysql.server. See
Appendix F, Environment Variables.
You can set the time zone for the server with the
--timezone=timezone_name option to
mysqld_safe. You can also set it by setting the
TZ environment variable before you start
mysqld.
The allowable values for --timezone or
TZ are system-dependent. Consult your operating
system documentation to see what values are acceptable.
© 1995-2005 MySQL AB. All rights reserved.

User Comments
Warning: query failed: Unknown column 'user.firstname' in 'field list' in /data0/sites/live/web-main/lib/mysql-cxn.php on line 69
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /data0/sites/live/web-main/lib/docbook.php on line 245
Add your own comment.