about summary refs log tree commit diff
path: root/time
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-02-16 16:15:45 +0000
committerRoland McGrath <roland@gnu.org>1996-02-16 16:15:45 +0000
commit1cbca0d93c6c1507c4e69a21e60c77e704b7e1da (patch)
tree96e8c54739fd33b58929ebbfb475132b6da26cfa /time
parent7c97bb094e60bd100c752234397979d32d89a864 (diff)
downloadglibc-1cbca0d93c6c1507c4e69a21e60c77e704b7e1da.tar.gz
glibc-1cbca0d93c6c1507c4e69a21e60c77e704b7e1da.tar.xz
glibc-1cbca0d93c6c1507c4e69a21e60c77e704b7e1da.zip
Fri Feb 16 11:01:59 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu> cvs/libc-960219 cvs/libc-960218 cvs/libc-960217
	* time/tzset.c: Limit hours to 23, not 12.  From jaffer.
Diffstat (limited to 'time')
-rw-r--r--time/tzset.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/time/tzset.c b/time/tzset.c
index 813609c230..2635155dd2 100644
--- a/time/tzset.c
+++ b/time/tzset.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 92, 93, 94, 95, 96 Free Software Foundation, Inc.
 This file is part of the GNU C Library.
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -177,7 +177,7 @@ DEFUN_VOID(__tzset)
       break;
     }
   tz_rules[0].offset *= (min(ss, 59) + (min(mm, 59) * 60) +
-			 (min(hh, 12) * 60 * 60));
+			 (min(hh, 23) * 60 * 60));
 
   for (l = 0; l < 3; ++l)
     {
@@ -228,7 +228,7 @@ DEFUN_VOID(__tzset)
       ss = 0;
     case 3:
       tz_rules[1].offset *= (min(ss, 59) + (min(mm, 59) * 60) +
-			     (min(hh, 12) * (60 * 60)));
+			     (min(hh, 23) * (60 * 60)));
       break;
     }
   for (l = 0; l < 3; ++l)
@@ -257,14 +257,14 @@ DEFUN_VOID(__tzset)
   for (whichrule = 0; whichrule < 2; ++whichrule)
     {
       register tz_rule *tzr = &tz_rules[whichrule];
-      
+
       if (*tz == ',')
 	{
 	  ++tz;
 	  if (*tz == '\0')
 	    return;
 	}
-      
+
       /* Get the date of the change.  */
       if (*tz == 'J' || isdigit (*tz))
 	{
@@ -309,7 +309,7 @@ DEFUN_VOID(__tzset)
 	}
       else
 	return;
-      
+
       if (*tz != '\0' && *tz != '/' && *tz != ',')
 	return;
       else if (*tz == '/')
@@ -375,7 +375,7 @@ DEFUN(compute_change, (rule, year), tz_rule *rule AND int year)
   if (year != -1 && rule->computed_for == year)
     /* Operations on times in 1969 will be slower.  Oh well.  */
     return 1;
-     
+
   /* First set T to January 1st, 0:00:00 GMT in YEAR.  */
   t = 0;
   for (y = 1970; y < year; ++y)