Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting time on specific time zones
Message
From
11/10/2000 02:06:43
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00427695
Message ID:
00427717
Views:
24
>I'd recommend storing all times in a standard (probably GMT) and letting users set their offset (most people know their offset from GMT in hours). People would need to remember to change their offset when daylight savings starts and finishes. I'd certainly recommend using the seconds to do the offset calcs.

Unfortunately, we won't change our database layout. We also want to store the time in our local time zone. Imagine trying to debug something where you always have to calculate the real time. It is important that the time stamp represents Montreal.

I changed my function to use Al Domain approach. It is a much better approach, simplier code and faster.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform