[Bug 217560] FAT32 - Time stamp of file is one hour off

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Apr 29 01:37:07 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217560

Damjan Jovanovic <damjan.jov at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |damjan.jov at gmail.com

--- Comment #4 from Damjan Jovanovic <damjan.jov at gmail.com> ---
There is definitely some timestamp bug here. In my UTC+2 timezone:

$ date  
Sun Apr 29 03:23:58 SAST 2018
$ touch bsd-201804290323.txt
$ stat -x bsd-201804290323.txt 
  File: "bsd-201804290323.txt"
  Size: 0            FileType: Regular File
  Mode: (0755/-rwxr-xr-x)         Uid: ( 1002/   user)  Gid: (    0/   wheel)
Device: 0,139   Inode: 59620    Links: 1
Access: Sun Apr 29 02:00:00 2018
Modify: Sun Apr 29 05:23:58 2018
Change: Sun Apr 29 05:23:58 2018

Windows shows the correct modified/changed times of 03:23. Why is FreeBSD
adding my time zone offset (2 hours) to the times when stat reads them, even
though they are already in local time?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-fs mailing list