-----------------------------------------------------------------
Revision: 7cd64e925e3ee1aeb936cf8c85a648bd0b25bb27
Ancestor: 613df1be9bd0d2426eb4706870c853cb12878eb5
Author: [email protected]
Date: 03/15/10 03:52:55
Branch: net.venge.monotone.experiment.changelog-editor
Modified files:
cmd_ws_commit.cc dates.cc unit-tests/dates.cc
ChangeLog:
fix date parsing to handle daylight saving time correctly
* cmd_ws_commit.cc (status, commit): add debug logging of date check failures
* dates.cc (as_formatted_localtime): add debug logging of date formatting
(from_formatted_localtime): add debug logging of date parsing; set tm_isdst
to -1 to request mktime to determine whether DST is in effect or not and
produce time_t values accordingly; remove check for -1 in mktime's return
value since it also represents a valid date; subsequent checks should catch
any errors mktime encounters
* unit-tests/dates.cc (roundtrip_localtimes): adjust checks of formatting and
parsing 1969-12-31 23:59:59 to expect success
monotone --db={your.database} diff
--revision=613df1be9bd0d2426eb4706870c853cb12878eb5
--revision=7cd64e925e3ee1aeb936cf8c85a648bd0b25bb27
----------------------------------------------------------------------
_______________________________________________
Monotone-commits-nodiffs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/monotone-commits-nodiffs