How to add time stamp based on the time zone setup in the site maintenance or the company maintenance?


How do I capture the time stamp based on the time zone set up in the company site or the company maintenance?


Hmm never noticed Time Zones before; looks like they added that feature sometime in 10.2…

If you give more details on what you’re trying to do it would be easier to help, but I think in general you would have to pull the time from the appserver, do a lookup of the applicable SysCompany.TimeZoneID or Plant.TimeZoneID, then use some logic to translate the appserver’s time into the right time zone… That said, I can see this getting very messy. Maybe I’m missing an easier solution, but typically time zones are a giant pain to deal with no matter how you do it.