Skip to content
Tcl Source Code View Ticket
Login

View Ticket

file files broken on Mac

Closed / Fixed219290ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2000-10-26 05:10:04
OriginalBugID: 2249 Bug
Version: 8.0.5
SubmitDate: '1999-06-16'
LastModified: '1999-10-21'
Severity: LOW
Status: UnAssn
Submitter: techsupp
ChangedBy: hobbs
OS: Macintosh
OSVersion: MacOS 8.6
Machine: Power PC
FixedDate: '2000-10-25'
ClosedDate: '2000-10-25'


Name:
Michael Halle

ReproducibleScript:
file mtime

ObservedBehavior:
File times returned are negative values under MacOS 8.6, running on an
    HFS+ disk.
    
    It looks like it has something to do with the GMT offset code in the
    tclMacFile.c
    source file.
dkf Ticket [219290ffff]: 1 change [History diff]2000-11-21 16:50:45
dasplain2001-08-25 00:21:49
Logged In: YES 
user_id=90580

This was presumably not a bug, but rather due to the mac 
epoch being different from the unix epoch.

In 8.3.x, using the returned value as input to clock format 
gives the correct result, except for the fact that timezone 
information is ignored.

in 8.4 with patch #435658, the mac epoch is now the same as 
the unix epoch and file mtimes values are now positive. 
Timezones are also implemented btw.
Log in (anonymous is fine) to add a comment.