Skip to contentSkip to conversation

[2.4.20] problem with updating time fields?

DISCUSSION Folkert van Heusden 2 participants 4 messages Dec 2, 2002 – Dec 4, 2002

lore
Share & tools
lore
#0 lore raw

Hi,

I thing I might be onto something:
when I do an ls -l in some directory, I get:

root@muur:/usr/local/etc# ls -l /data2/backup/
total 446036
-rw-r--r--    1 root     root       209975 Dec  2 01:12 backup.log.bz2
-rw-r--r--    1 root     root     269022417 Dec  2 01:12 data.tar.bz2
-rw-r--r--    1 root     root         6651 Dec  2 01:12 data2.tar.bz2
-rw-r--r--    1 root     root     39717149 Dec  2 00:15 root.tar.bz2
-rw-r--r--    1 root     root     147302102 Dec  2 00:44 usr.tar.bz2
If I connect with ftp to that machine and do
the ls in the same dir, I get:
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
-rw-r--r--   1 root     root       209975 Dec  2 00:12 backup.log.bz2
-rw-r--r--   1 root     root     269022417 Dec  2 00:12 data.tar.bz2
-rw-r--r--   1 root     root         6651 Dec  2 00:12 data2.tar.bz2
-rw-r--r--   1 root     root     39717149 Dec  1 23:15 root.tar.bz2
-rw-r--r--   1 root     root     147302102 Dec  1 23:44 usr.tar.bz2
Dec 1! that's different from what the ls gives me!

I mount /data2 as ext3 (fstab: /dev/hda6 /data2 ext3 defaults
0 0),
nothing fancy.

Bug? Or am I ignorant?

Folkert van Heusden
http://www.vanheusden.com/Linux/kernel_patches.php3

#1 lore raw

"Folkert van Heusden" <[email protected]> writes:

|> Bug? Or am I ignorant?

Check out the timezone.

Andreas.

Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected]
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
#2 lore raw

|> Bug? Or am I ignorant?
A> Check out the timezone.

Not set, as far as I can see: date says they're both in CET (central european time?).
Also: both machines sync themselves against the same NTP- server.

folkert@muur:~$ date
Mon Dec  2 22:32:01 CET 2002
folkert@keetweej:~/website/current/web$ date
Mon Dec  2 22:32:05 CET 2002

(yeah, it took 4 seconds to switch from muur' to keetweej' :-])

#3 lore raw

"Folkert van Heusden" <[email protected]> writes:

|> |> Bug? Or am I ignorant?
|> A> Check out the timezone.
|> 
|> Not set, as far as I can see: date says they're both in
|> CET (central european time?).

But your ftp server obviously uses a different time zone. Probably it just uses UTC because it does not know better.

Andreas.

Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected]
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."