Whamcloud - gitweb
debugfs, tune2fs: Handle daylight savings time when parsing a time string
authorTheodore Ts'o <tytso@mit.edu>
Fri, 21 Mar 2008 13:10:09 +0000 (09:10 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 21 Mar 2008 13:10:09 +0000 (09:10 -0400)
commita2ff0f31c1987a480ffc4dacb7adf93f0aecf7f6
tree0eeeb685157f12ef38c88c5731c466fb2543c1e0
parenta7ee4e01838a2ae5e3adf2d159d2f8f824e17ed7
debugfs, tune2fs: Handle daylight savings time when parsing a time string

We need to set tm_isdst to -1 so that mktime will automatically
determine whether or not daylight savings time (DST) is in effect.
Previously tm_isdst was set to 0, which caused mktime to interpret the
time as if it was always not using DST.

Addresses-Debian-Bug: #471882

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debugfs/util.c
misc/tune2fs.c