aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-06-12 15:08:43 +0000
committerCorinna Vinschen <corinna@vinschen.de>2009-06-12 15:08:43 +0000
commitc3d7820d5bc68f41cc791029b08f5ddfa5bce245 (patch)
tree29e291774e3e79ca404c1105567fabbaef80ef77 /winsup
parent7ce08eab6cd20d48d83167bfb48c272cabfe5c2b (diff)
downloadnewlib-c3d7820d5bc68f41cc791029b08f5ddfa5bce245.zip
newlib-c3d7820d5bc68f41cc791029b08f5ddfa5bce245.tar.gz
newlib-c3d7820d5bc68f41cc791029b08f5ddfa5bce245.tar.bz2
* localtime.cc (time2): Change "spring gap" to "spring forward gap"
in comment.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog9
-rw-r--r--winsup/cygwin/localtime.cc6
2 files changed, 10 insertions, 5 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 1723b18..cc19f0c 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,7 +1,12 @@
2009-06-12 Corinna Vinschen <corinna@vinschen.de>
- * localtime.cc (time2): Add workaround for spring gap problem. Add
- explaining comment.
+ * localtime.cc (time2): Change "spring gap" to "spring forward gap"
+ in comment.
+
+2009-06-12 Corinna Vinschen <corinna@vinschen.de>
+
+ * localtime.cc (time2): Add workaround for spring forward gap problem.
+ Add explaining comment.
2009-06-12 Corinna Vinschen <corinna@vinschen.de>
diff --git a/winsup/cygwin/localtime.cc b/winsup/cygwin/localtime.cc
index aa0f735..c655961 100644
--- a/winsup/cygwin/localtime.cc
+++ b/winsup/cygwin/localtime.cc
@@ -1994,13 +1994,13 @@ time2(struct tm *tmp, void (*funcp) P((const time_t*, long, struct tm*)),
t = time2sub(tmp, funcp, offset, okayp, true);
if (*okayp)
return t;
- /* Workaround for the spring gap problem which results in the
- autoconf mktime usability test failing.
+ /* Workaround for the spring forward gap problem which results in
+ the autoconf mktime usability test failing.
What we do here is this: The gap has 3600 seconds. If we
subtract 3600 from the tm_sec value and get a valid result,
then we can simply add 3600 to the return value and are done.
If the result is still not valid, the problem is not the
- spring gap and we can give up. */
+ spring forward gap and we can give up. */
struct tm tmp2 = *tmp;
tmp2.tm_sec -= 3600;
t = time2sub(&tmp2, funcp, offset, okayp, true);