Time Zone problem

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

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

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
Photon
 
Posts: 5
Joined: Wed Dec 31, 1969 5:00 pm

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

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.php

Otherwise you can use putenv:
http://www.modwest.com/help/kb5-258.html

A list of supported timezones.
http://ca.php.net/timezones

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

-Steve
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
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.
Photon
 
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
jimmywie
 
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)
jamal_tea
 
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 23 guests

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