Question with auction start and end times and EST timezone

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

Question with auction start and end times and EST timezone

Postby yvan » Wed May 27, 2009 1:18 pm

I recently added the following to the top of index.php in my auction site:

date_default_timezone_set('US/Eastern');

This allows for the "Current Time" clock to reflect the correct time - which is Eastern Standard Time (the company is based out of South Florida).

However -- when viewing auction items (in either listing or detail view) -- I'm seeing that the start and end times for the auctions are showing as incorrect. They do NOT match up with what's in the database. Instead, they're showing as 3 hrs ahead of the times that are in the database.

At this point, it's uncertain as to how this offset is going to effect the bidding process, as I'm not sure if the auction will close based on the close time that's in the database, .. or based on it's offset value.

Ideally, .. I'd like to be able to do the following:


1) Always have the clock show the time based on the Eastern Standard Time Zone

2) Always show the auction start and end times exactly as they are in the database

3) Always open and close the auction based on Eastern Standard Time, using the exact start and end times that are in the database.

How do I go about this?

Thanks,
- Yvan
yvan
 
Posts: 13
Joined: Tue Mar 24, 2009 12:48 pm

Return to Web Auction Discussion

Who is online

Users browsing this forum: No registered users and 14 guests

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