[Templates-cvs] cvs commit: Template2/t date.t

cvs@template-toolkit.org cvs@template-toolkit.org
Tue, 06 Jan 2004 18:47:04 +0000


cvs         04/01/06 18:47:04

  Modified:    t        date.t
  Log:
  * fixed bug in Monday/Tuesday/Wednesday test
  
  Revision  Changes    Path
  2.13      +5 -4      Template2/t/date.t
  
  Index: date.t
  ===================================================================
  RCS file: /template-toolkit/Template2/t/date.t,v
  retrieving revision 2.12
  retrieving revision 2.13
  diff -u -r2.12 -r2.13
  --- date.t	2003/08/03 19:54:13	2.12
  +++ date.t	2004/01/06 18:47:03	2.13
  @@ -11,7 +11,7 @@
   # This is free software; you can redistribute it and/or modify it
   # under the same terms as Perl itself.
   #
  -# $Id: date.t,v 2.12 2003/08/03 19:54:13 abw Exp $
  +# $Id: date.t,v 2.13 2004/01/06 18:47:03 abw Exp $
   #
   #========================================================================
   
  @@ -186,13 +186,14 @@
   04
   
   -- test --
  +-- name September 13th 2000 --
   [% USE day = date(format => '%A', locale => 'en_GB') %]
  -[% day.format('4:20:00 9-13-2000') %]
  +[% day.format('4:20:00 13-9-2000') %]
   
   -- expect --
   -- process --
  -[% # 4:20:00 9-13-2000 equals 979010400 seconds since the epoch
  -   nowloc(979010400, '%A', 'en_GB')
  +[% # 4:20:00 9-13-2000 equals 968818800 seconds since the epoch
  +   nowloc(968818800, '%A', 'en_GB')
   %]
   
   -- test --