GoLive Gurus,
        I've been hunting around the net and PHP online manual for a
while, and I haven't found a clear description of how to make it so my
PHP scripts return values for times and dates that are consistent with
my time zone.
        All the web pages I'm working on are intended for use in Japan.
I've created a calendar for people to sign up for activities on specific
dates. The servers where my sites are located are in Nevada (US PST
time). This puts them off by about 16 hours or so, which is significant
enough to offset, for example, which day is shown to be today.
        So, naturally, I would like to adjust my scripts so that all
date values returned are in JST.
        I thought this was accomplished with setlocale(), so, shooting
in the dark, I experimented with:
        setlocale(LC_TIME, JST);
        I also tried, in place of "JST", "jst", "jp", "JP", "Japan",
"JAPAN", and "japan".
        I figured I was not using the command right, so I looked around,
and came across this article:
        http://www.opengroup.org/onlinepubs/7908799/xbd/locale.html
        ... and it confused me greatly.
        
        What I'm trying to do is hopefully set some command at the start
of my script which will make the rest of the script know that it's
supposed to do everything in Japan time. Is this possible?
        mysql.org has been equally opaque on the topic of time zones.
Lots of information about how to format times, but not very clear about
how to make the database take on a time zone. If anyone has pointers on
that as well, that would be greatly appreciated.

-- 
Cheers!
Dave G
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to