3 ms·
All systems in common use, use UTC for the underlying representation. The concept of setting the time zone is a high level library thing already and all these
by riceart 4y ago
All systems in common use, use UTC for the underlying representation.
The concept of setting the time zone is a high level library thing already and all these systems, their standard time functions simply provide a time since some fixed epoch.
Ie see C time(), gettimeofday, clock_gettime, GetSystemTime. They’re all “UTC” based.
If a piece of server software is going out of its way to deal with local time APIs and blows up because of it - well it either legitimately needs to deal in local time, or it’s so poorly designed that simply keeping the system locale set to UTC isn’t somehow a magic fix. That’s just an adhoc assumption.