diff options
author | Steve French <sfrench@us.ibm.com> | 2006-10-12 04:02:32 +0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2006-10-12 04:02:32 +0400 |
commit | 533f90af6d90b9e4859a158565385d1d84a79f75 (patch) | |
tree | 3f141cf47d27f24e623277d2d6be2a36191c1275 /fs/cifs/netmisc.c | |
parent | 70903ca004fef17b0f6483714baefdb2f6ecceb0 (diff) | |
download | linux-533f90af6d90b9e4859a158565385d1d84a79f75.tar.xz |
[CIFS] Fix old DOS time conversion to handle timezone
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/netmisc.c')
-rw-r--r-- | fs/cifs/netmisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/netmisc.c b/fs/cifs/netmisc.c index 3adbd128e08e..992e80edc720 100644 --- a/fs/cifs/netmisc.c +++ b/fs/cifs/netmisc.c @@ -942,7 +942,7 @@ struct timespec cnvrtDosUnixTm(__u16 date, __u16 time) cERROR(1,("illegal date, month %d day: %d", month, days)); month -= 1; days += total_days_of_prev_months[month]; - days += 3653; /* account for difference in days between 1980 and 1970 */ + days += 3652; /* account for difference in days between 1980 and 1970 */ year = sd->Year; days += year * 365; days += (year/4); /* leap year */ |