Re: [PHP] How can I change the timezone?
How to do this? -- Jay Blanchard [EMAIL PROTECTED] ???:[EMAIL PROTECTED] [snip] I am in Hong Kong and the server is in US. I can't change the server setting. [/snip] How about getting the server time and then adding or subtracting from that to get the appropriate time? http://us2.php.net/manual/en/function.time.php HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How can I change the timezone?
[snip] How to do this? [snip] I am in Hong Kong and the server is in US. I can't change the server setting. [/snip] How about getting the server time and then adding or subtracting from that to get the appropriate time? http://us2.php.net/manual/en/function.time.php [/snip] Use mktime http://us2.php.net/manual/en/function.mktime.php HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How can I change the timezone?
Thank you. I added 43200 then slove this problem. -- Jay Blanchard [EMAIL PROTECTED] ???:[EMAIL PROTECTED] [snip] How to do this? [snip] I am in Hong Kong and the server is in US. I can't change the server setting. [/snip] How about getting the server time and then adding or subtracting from that to get the appropriate time? http://us2.php.net/manual/en/function.time.php [/snip] Use mktime http://us2.php.net/manual/en/function.mktime.php HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How can I change the timezone?
on 28/05/03 11:49 PM, Jay Blanchard ([EMAIL PROTECTED]) wrote: [snip] I am in Hong Kong and the server is in US. I can't change the server setting. [/snip] How about getting the server time and then adding or subtracting from that to get the appropriate time? http://us2.php.net/manual/en/function.time.php That doesn't really account for daylight savings, etc etc. Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How can I change the timezone?
[snip] [snip] I am in Hong Kong and the server is in US. I can't change the server setting. [/snip] How about getting the server time and then adding or subtracting from that to get the appropriate time? http://us2.php.net/manual/en/function.time.php That doesn't really account for daylight savings, etc etc. [/snip] True, does Hong Kong use DSLT? Does the server in the US use DSLT? Can the server time be related to GMT and then added to or subrtacted from? Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How can I change the timezone?
[snip] I am in Hong Kong and the server is in US. I can't change the server setting. [/snip] How about getting the server time and then adding or subtracting from that to get the appropriate time? http://us2.php.net/manual/en/function.time.php HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php