On Mon, Sep 18, 2000, Alex Dubrovsky wrote about "samba vs win98 enabled":
> Hi all
> We have a weird problem here
> When user modifies file on samba share from win98 with
> notepad/word/other program the modification date for that file is turned
> into
> the year , like this:
> drwxr-xr-x   5 odedb    odedb        4096 Sep 18 07:18 Desktop
> -rwxr--r--   1 odedb    odedb        1422 Sep 18  2000 oded.test.txt
>                                               ^^^^^^^
> This doesn't happen when done from win95/NT/2000 machine
> it happens with both samba on solaris and samba on linux
>...

In Unix, modification times are stored as the number of seconds that have
passed since Midnight, January 1, 1970, GMT (if I remember correctly). But
if you were to convert this to a full date, with month, day-of-the-month,
year and hour, ls would not have much place to display it, assuming the
standard 80-character line width.

This is why it is customary for 'ls -l' to use the following heuristic to
decide how to display only partial information about the date:
(see 'info ls', for example):

    "For files with a time more than six months old or more than one hour
     into the future, the timestamp contains the year instead of the
     time of day."

If you want to see the full time, use the "--full-time" paramter to ls
(Assuming, of course, GNU ls. This option was *not* available on AT&T's Unix).

Anyway, because the file you show is not over 6 months in the past (because
it says "September 2000"), we can come to the conclusion: it is more than 1
hour in the future. This could mean one of two things:

  1. The time on your PC is off by over one hour.

  2. Time-zone problems: in this case the file will be 3 hours in the future
     (check this with the --full-time paramter as I said above).
     You should check if the timezone configuration on your Windows 98 is
     different than the one in windows 95 (which you say works correctly),
     and if it is, copy the timezone configuration from Windows 95.
     You can also try
     a) Setting your PC is to "GMT" (e.g., "Monrovia" time zone) with the
        Israeli time.
     b) Setting your PC to "Israel" time zone, with the Israeli time.
     and see which one will work correctly.

Good luck,
        Nadav.


-- 
Nadav Har'El                        |        Monday, Sep 18 2000, 18 Elul 5760
[EMAIL PROTECTED]             |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |Linux: Because rebooting is for adding
http://nadav.harel.org.il           |new hardware.

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to