login
Header Space

 
 

timezone anomalies

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: OpenBSD <misc@...>
Date: Thursday, May 22, 2008 - 7:34 am

hi there,

today i wanted to copy the pictures from my camera sd card
to my openbsd notebook.  after mounting the card i noticed
that there are files with future dates...

amaaq> ls -la /etc/localtime
lrwxr-xr-x  1 root  wheel  36 May 21 12:23 /etc/localtime@ -> /usr/share/zoneinfo/Pacific/Auckland
amaaq> ls -la
-rw-rw-rw-  1 f  wheel    906429 May 23 05:36 dscn9996.jpg
-rw-rw-rw-  1 f  wheel    877491 May 23 05:37 dscn9997.jpg
-rw-rw-rw-  1 f  wheel    915682 May 23 05:38 dscn9998.jpg
amaaq> TZ= ls -la
-rw-rw-rw-  1 f  wheel    906429 May 22 17:36 dscn9996.jpg
-rw-rw-rw-  1 f  wheel    877491 May 22 17:37 dscn9997.jpg
-rw-rw-rw-  1 f  wheel    915682 May 22 17:38 dscn9998.jpg
amaaq> echo $TZ
amaaq>

ls prints the correct date/time when explicitly clearing $TZ.
but there is nothing in it in the first place...

i had different timezones before, but now i am in new zealand...
this has never happened before as far as a i can tell..
ls(1) says that TZ is used to print the dates but it never
occured to me that it would add $TZ hours to the file date,
that's why i am having filedates in the future, obivously,
that the files have correct dates on disk.

is this the accepted behaviour?
the mounts are ext2fs and msdos btw.
4.3-current as of may 19

-f
-- 
how much can i get away with and still go to heaven?
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
timezone anomalies, frantisek holop, (Thu May 22, 7:34 am)
Re: timezone anomalies, frantisek holop, (Fri May 23, 3:25 am)
Re: timezone anomalies, Woodchuck, (Fri May 23, 11:56 pm)
Re: timezone anomalies, frantisek holop, (Sun May 25, 6:41 am)
Re: timezone anomalies, Woodchuck, (Mon May 26, 1:24 am)
Re: timezone anomalies, frantisek holop, (Wed May 28, 5:50 am)
Re: timezone anomalies, David Vasek, (Wed May 28, 7:12 am)
Re: timezone anomalies, Ted Unangst, (Sun May 25, 10:25 pm)
Re: timezone anomalies, frantisek holop, (Thu May 22, 8:23 am)
Re: timezone anomalies, Kevin Wilcox, (Thu May 22, 9:06 am)
Re: timezone anomalies, Paul de Weerd, (Thu May 22, 8:40 am)
Re: timezone anomalies, Wade, Daniel, (Thu May 22, 9:22 am)
speck-geostationary