Is there a timezone function that can work application wide for TDateTime and Now() ? Have a case where a server is always in Standard time but need to have an application producing timestamps that are adjusted for daylight. In C++ this could be done with tzset() function from memory.

Comments

  1. Have you checked out the TTimeZone class? It has lots of functions for converting to/from UTC and local and for daylight savings time adjustments? docwiki.embarcadero.com/Libraries/XE5/en/System.DateUtils.TTimeZonedocwiki.embarcadero.com - System.DateUtils.TTimeZone - RAD Studio API Documentation

    ReplyDelete
  2. Thanks guys, I'll have to look into both options. Probably a central function to adjust the time will be the way to go.

    ReplyDelete

Post a Comment