[Bug 2106] New: When TZ isn't explicitly set ls can give different time stamps

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Fri May 17 01:04:03 EST 2013


https://bugzilla.mindrot.org/show_bug.cgi?id=2106

            Bug ID: 2106
           Summary: When TZ isn't explicitly set ls can give different
                    time stamps
    Classification: Unclassified
           Product: Portable OpenSSH
           Version: 5.3p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: sftp
          Assignee: unassigned-bugs at mindrot.org
          Reporter: dave.clarke at hfit.com

When I do an ls -ltr with no arguments I get a listing for a file
saying something like

sftp> ls -ltr
:
-rw-rw-rw-   1 user     group       10466 May 14 20:42 P1.XXXX
:

However when I list the file explicitly

sftp> ls -ltr P1.XXXXX
-rw-rw-rw-    0 0        0           10466 May 14 15:42 P1.XXXXX

sftp> ls -l P1.XXXXX
-rw-rw-rw-    0 0        0           10466 May 14 15:42 P1.XXXXX

The SFTP Server and Client are both in CDT timezone though the TZ
environment variable isn't set and the 20:42 is obviously the UT time

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


More information about the openssh-bugs mailing list