MySQL Reference Manual for version 4.0.18.

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

A.4.6 Time Zone Problems

If you have a problem with SELECT NOW() returning values in GMT and not your local time, you have to set the TZ environment variable to your current time zone. This should be done for the environment in which the server runs, for example, in mysqld_safe or mysql.server. See section E. Environment Variables.

The same applies if UNIX_TIMESTAMP() returns the wrong value.

You can set the time zone for the server by setting the TZ environment variable before you start mysqld. You can also set it with the --timezone=timezone_name argument to mysqld_safe.

The allowable TZ values are system-dependent. Consult your operating system documentation to see what values are acceptable.



This document was generated by rdg (Feb 25 2004) using texi2html