Time Zone problem

A place to discuss and receive support for the Web Auction application.

Postby Photon » Wed Sep 26, 2007 4:58 am


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.

Posts: 5
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Wed Sep 26, 2007 1:32 pm


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:

Otherwise you can use putenv:

A list of supported timezones.

There are other ways to override the display of fields in dataface, but I would try one of these methods first.

Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby Photon » Thu Sep 27, 2007 1:39 pm

Thanks, the putenv solution did the trick.
Posts: 5
Joined: Wed Dec 31, 1969 5:00 pm

Re: Time Zone problem

Postby jimmywie » Thu Jul 21, 2011 3:30 am

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
Posts: 3
Joined: Thu Jul 21, 2011 2:40 am

Re: Time Zone problem

Postby jamal_tea » Sat Apr 28, 2012 9:37 pm

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)
Posts: 1
Joined: Sat Apr 28, 2012 9:28 pm

Return to Web Auction Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved