On 2013-Feb-06, 10:15, Pietro Cerutti wrote:
> On 2013-Feb-06, 10:10, Pietro Cerutti wrote:> > On 2013-Feb-05, 23:06, Andreas Kupries wrote:> > > > > New in tcllib 1.15> > > ==================> > > > > > Module Package New Version Comments> > > ----------- ------------------------- ------------- ----------> > > clock clock::iso8601 0.1> > > > The clock-iso8601-2.1 test fails here. It expects> > > > clock::iso8601 parse_date 1994-11-05> > > > to return 784022400, which is 1994-11-05 08:00:00.> > > > You're sure your expected result shouldn't be 783990000 (midnight of> > the same day) instead?> > Err, this should have been 783993600, in UTC.
And this could be a fix:
--- iso8601.test.orig 2013-02-06 10:17:50.000000000 +0100
+++ iso8601.test 2013-02-06 10:18:13.000000000 +0100
@@ -40,9 +40,8 @@
} -returnCodes error -result {not an iso8601 date string}
test clock-iso8601-2.1 {parse_date} -body {
- clock::iso8601 parse_date 1994-11-05
- # It is unclear if this is influenced by TZ.
-} -result 784022400
+ clock::iso8601 parse_date 1994-11-05 -gmt 1
+} -result 783993600
# -------------------------------------------------------------------------
> > -- > Pietro Cerutti> g...@gahr.ch> > PGP Public Key:> http://gahr.ch/pgp
--
Pietro Cerutti
g...@gahr.ch
PGP Public Key:
http://gahr.ch/pgp
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Tcl-Core mailing list
Tcl-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcl-core