XPost: comp.os.linux.advocacy   
   From: candycanearter07@candycanearter07.nomail.afraid   
      
   CrudeSausage wrote at 23:32 this Wednesday (GMT):   
   > On 2025-12-24 2:04 p.m., Lawrence D’Oliveiro wrote:   
   >> On Wed, 24 Dec 2025 14:20:03 -0000 (UTC), candycanearter07 wrote:   
   >>   
   >>> Actually, I believe Linux will /always/ set the internal clock to   
   >>> the UTC time, regardless of how the timezone is set. Windows, on the   
   >>> other hand, assumes its the local time and offsets accordingly. Of   
   >>> course, loading into Linux from Windows doesn't screw up the time...   
   >>   
   >> Sounds like it is Windows getting screwed up.   
   >>   
   >> System time in UTC is the only convention that makes sense. Convert   
   >> time to some suitable local time zone before displaying it to the   
   >> user, by all means. But don’t assume that all the users on a   
   >> particular system are in the same time zone.   
   >   
   > Why wouldn't all the users of a system located in one time zone also be   
   > in that same time zone?   
      
      
   General best practice for datetime is to store everything in UTC, then   
   only convert to timezones when displaying to the user. Timezones are   
   incredibly messy, so using a global standard makes things way simpler.   
   Even in one timezone, something like daylight savings can mess things   
   up.   
   --   
   user is generated from /dev/urandom   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|