mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* vfs.c (vfs_parse_filedate): Don't reset got_year to 0 while
checking for ctime() format. From Peter Daum.
This commit is contained in:
parent
3a127b877c
commit
a18b4a09eb
@ -1,3 +1,9 @@
|
||||
2001-02-14 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* vfs.c (vfs_parse_filedate): Don't reset got_year to 0 while
|
||||
checking for ctime() format.
|
||||
From Peter Daum.
|
||||
|
||||
2001-02-11 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* extfs/mailfs (parse_date): Workaround for Y2K bugs. Support
|
||||
|
@ -1583,7 +1583,7 @@ int vfs_parse_filedate(int idx, time_t *t)
|
||||
|
||||
/* This is a special case for ctime() or Mon DD YYYY hh:mm */
|
||||
if(is_num (idx) && (columns[idx+1][0]) &&
|
||||
((got_year = is_year(columns[idx], &tim)) || is_time(columns[idx], &tim)))
|
||||
((got_year |= is_year(columns[idx], &tim)) || is_time(columns[idx], &tim)))
|
||||
idx++; /* time & year or reverse */
|
||||
} /* only time or date */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user