]> code.citadel.org Git - citadel.git/commitdiff
* tools.c: display 13:00 as 12pm, not 12am
authorArt Cancro <ajc@citadel.org>
Fri, 16 Jul 2004 19:13:11 +0000 (19:13 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 16 Jul 2004 19:13:11 +0000 (19:13 +0000)
webcit/ChangeLog
webcit/tools.c

index eb11fd47266ffdc9417931f116855af5fc9a0663..d15c1cc5171b1288d8c3c68bf9cd32a818ef70a3 100644 (file)
@@ -1,4 +1,7 @@
 $Log$
+Revision 522.16  2004/07/16 19:13:10  ajc
+* tools.c: display 13:00 as 12pm, not 12am
+
 Revision 522.15  2004/07/16 03:14:03  ajc
 * more work on inetconf screen
 
@@ -1977,4 +1980,3 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
-
index eb09d72fb8f2988a0abe7f911c811458c8f5530e..25258ce1b1f8d1588d845b39da551f9d84d7978c 100644 (file)
@@ -213,7 +213,7 @@ void fmt_date(char *buf, time_t thetime)
                ascmonths[tm->tm_mon],
                tm->tm_mday,
                tm->tm_year + 1900,
-               hour, tm->tm_min, ((tm->tm_hour > 12) ? "pm" : "am")
+               hour, tm->tm_min, ((tm->tm_hour >= 12) ? "pm" : "am")
            );
 }