Page 1 of 1

Posted:
Wed Sep 26, 2007 4:58 am
by Photon
Hi.
I'm running an auction on a hosted server and all time values displayed are based on the server clock and time zone.
Is there a way to configure a time zone that will override the server's time zone?
Even a partial solution that only modifies the displayed values will do.
For example, if the server is at GMT-5 and my time zone is GMT+1, a closing time of 5:00am should display 11:00am in the browser.
Thanks

Posted:
Wed Sep 26, 2007 1:32 pm
by shannah
Hi,
You can change the timezone for your entire application by adding some code to the beginning of your index.php file.
If you're using PHP 5 you can use the date_default_timezone_set() function:
http://ca.php.net/manual/en/function.date-default-timezone-set.phpOtherwise you can use putenv:
http://www.modwest.com/help/kb5-258.htmlA list of supported timezones.
http://ca.php.net/timezonesThere are other ways to override the display of fields in dataface, but I would try one of these methods first.
-Steve

Posted:
Thu Sep 27, 2007 1:39 pm
by Photon
Thanks, the putenv solution did the trick.
Re: Time Zone problem

Posted:
Thu Jul 21, 2011 3:30 am
by jimmywie
Please advise how to fix display zone area in western Indonesia.
I set the default timezone to Asia/Jakarta but on the web display as WIT (Waktu Indonesia Timur/Eastern Indonesia)
as we know jakarta its location on the Indonesia western
which should be as WIB (Waktu Indonesia Barat) not WIT.
How do i fix it?
Thank you
Re: Time Zone problem

Posted:
Sat Apr 28, 2012 9:37 pm
by jamal_tea
Thanks -Steve. it works.
@jimmywie WIT: Western Indonesian Time not "Waktu Indonesia Timur", thus you dont have to fix anything co'z its the correct one (bahasa: Waktu Indonesia Barat)