1. Keep times in UTC. 2. Let the manager's preferences have a "local time zone" for himself, and when he enters a time you translate from his local timezone to "gmt". 3. Maybe add a system configuration parameter to display the timezone in which the times should be displayed.
That's basically the way UNIX handles this, and in a way that's why it's probably the easiest aproach (functions to translate to local time zones and back already exist in the standard C library).
BTW - the term "local NTP server" hints to me that you might not be aware what that means - NTP servers give GMT time. They don't care about local time zones. The only place where the "local time" raises it's ugly head (or should be) are the functions which actually print times (to logs or on the screen), everywere else you should be able to take a large integer number anywere in the world and treat it as the number of seconds since 12AM, Jan 1, 1970, GMT.
--Amos
Ben-Nes Michael wrote:
Hi All
I'm building an E-commerce auction store for Hungarian company.
When the manager add new sale He set the expiry date/time of the auction ( gmt +1 - hungarian ).
My server is located in Israel and is tuned against local NTP server.
How can I insure that my system will behave correctly considering the time zone/saving light ?
-------------------------- Canaan Surfing Ltd. Internet Service Providers Ben-Nes Michael - Manager Tel: 972-4-6991122 Fax: 972-4-6990098 http://www.canaan.net.il --------------------------
================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
---------- Your email is protected by Mailshell ---------- To block spam or change delivery options: http://www.mailshell.com/control.html?a=blshp8b9gc0rxhgk_srox_llfpptvypmvy7j
FreshAddress.com http://rd.mailshell.com/ad482 Earn up to $3 for each of your friends who signs up with Mailshell! http://rd.mailshell.com/sp5
================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]