Discussion:
[9fans] a strange time stamp
(too old to reply)
arisawa
2012-08-03 14:25:37 UTC
Permalink
Hello, 9fans.

I noticed a strange time stamp in /n/9fat.

term% cat /adm/timezone/local; date; touch /tmp/x; ls -l /tmp/x; 9fat:; touch /n/9fat/x; ls -l /n/9fat/x
JST 32400 JST 32400
Fri Aug 3 22:55:31 JST 2012
--rw-rw---- M 11 arisawa web 0 Aug 3 22:55 /tmp/x
--rw-rw-rw- M 95 bill trog 0 Aug 4 07:55 /n/9fat/x
term%

Why /n/9fat/x is Aug 4 07:55.
Is is only for me?

Kenji Arisawa
erik quanstrom
2012-08-03 15:02:40 UTC
Permalink
Post by arisawa
Hello, 9fans.
I noticed a strange time stamp in /n/9fat.
term% cat /adm/timezone/local; date; touch /tmp/x; ls -l /tmp/x; 9fat:; touch /n/9fat/x; ls -l /n/9fat/x
JST 32400 JST 32400
Fri Aug 3 22:55:31 JST 2012
--rw-rw---- M 11 arisawa web 0 Aug 3 22:55 /tmp/x
--rw-rw-rw- M 95 bill trog 0 Aug 4 07:55 /n/9fat/x
term%
Why /n/9fat/x is Aug 4 07:55.
Is is only for me?
it's for everybody. dosfs is evidently saving in gmt,
(incorrect) and then reading in local time (correct).
this means that your tz offset gets applied twice.
since i'm gmt-4, the round trip to dosfs will give
gmt-8. if you're gmt+9, then the round trip would
yield gmt+18, i think.

- erik

Loading...