Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libutil 2013-07-09 was in British Summer TIme, so ...



details:   https://anonhg.NetBSD.org/src/rev/4b005ec572d7
branches:  trunk
changeset: 332775:4b005ec572d7
user:      apb <apb%NetBSD.org@localhost>
date:      Wed Oct 08 17:23:03 2014 +0000

description:
2013-07-09 was in British Summer TIme, so use tzoff=-60, not 0.

diffstat:

 tests/lib/libutil/t_parsedate.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1442dd456abc -r 4b005ec572d7 tests/lib/libutil/t_parsedate.c
--- a/tests/lib/libutil/t_parsedate.c   Wed Oct 08 17:21:40 2014 +0000
+++ b/tests/lib/libutil/t_parsedate.c   Wed Oct 08 17:23:03 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_parsedate.c,v 1.12 2014/10/08 17:21:40 apb Exp $ */
+/* $NetBSD: t_parsedate.c,v 1.13 2014/10/08 17:23:03 apb Exp $ */
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_parsedate.c,v 1.12 2014/10/08 17:21:40 apb Exp $");
+__RCSID("$NetBSD: t_parsedate.c,v 1.13 2014/10/08 17:23:03 apb Exp $");
 
 #include <atf-c.h>
 #include <errno.h>
@@ -207,7 +207,7 @@
        ATF_CHECK(t != (time_t)-1);
        parsecheck("14:00", &t, NULL, localtime_r,
                2013, 7, 9, 14, 0, 0);
-       tzoff = 0;
+       tzoff = -60; /* British Summer Time */
        parsecheck("14:00", &t, &tzoff, localtime_r,
                2013, 7, 9, 14, 0, 0);
 }



Home | Main Index | Thread Index | Old Index