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

ISOTIME should have ISO format...



I noted, that the so called ISOTIME in WML has the format 
 dd-mm-yyyy hh:mm:ss

As far as I know, the "official" ISO time format is 
 yyyy-mm-dd hh:mm:ss

The attached patch changes this in WML.

Tschoeeee

        Roland

-- 
 * roland@spinnaker.de * http://www.spinnaker.de/ *
diff -urN wml-1.7.4-6.1/debian/changelog wml-1.7.4/debian/changelog
--- wml-1.7.4-6.1/debian/changelog	Sat Mar  4 19:07:13 2000
+++ wml-1.7.4/debian/changelog	Sat Mar  4 19:42:58 2000
@@ -1,3 +1,10 @@
+wml (1.7.4-6.2) unstable; urgency=low
+
+  * Non maintainer version.
+  * Change date in ISOTIME from DD-MM-YYYY to YYYY-MM-DD
+
+ -- Roland Rosenfeld <roland@debian.org>  Sat,  4 Mar 2000 19:42:57 +0100
+
 wml (1.7.4-6.1) unstable; urgency=low
 
   * Non maintainer version.
diff -urN wml-1.7.4-6.1/wml_backend/p3_eperl/eperl.pod wml-1.7.4/wml_backend/p3_eperl/eperl.pod
--- wml-1.7.4-6.1/wml_backend/p3_eperl/eperl.pod	Tue Jun  8 11:53:38 1999
+++ wml-1.7.4/wml_backend/p3_eperl/eperl.pod	Sat Mar  4 19:42:20 2000
@@ -851,7 +851,7 @@
 
 =item C<SCRIPT_SRC_MODIFIED_ISOTIME>
 
-The last modification time of the script, in ISO format (``DD-MM-YYYY
+The last modification time of the script, in ISO format (``YYYY-MM-DD
 HH:MM'').
 
 =item C<SCRIPT_SRC_OWNER>
diff -urN wml-1.7.4-6.1/wml_backend/p3_eperl/eperl_sys.c wml-1.7.4/wml_backend/p3_eperl/eperl_sys.c
--- wml-1.7.4-6.1/wml_backend/p3_eperl/eperl_sys.c	Mon Sep 20 15:12:18 1999
+++ wml-1.7.4/wml_backend/p3_eperl/eperl_sys.c	Sat Mar  4 19:41:46 2000
@@ -244,8 +244,8 @@
     char timestr[128];
 
     tm = localtime(t);
-    sprintf(timestr, "%02d-%02d-%04d %02d:%02d",
-                      tm->tm_mday, tm->tm_mon+1, tm->tm_year+1900,
+    sprintf(timestr, "%04d-%02d-%02d %02d:%02d",
+                      tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday,
                       tm->tm_hour, tm->tm_min);
     return strdup(timestr);
 }
diff -urN wml-1.7.4-6.1/wml_docs/wml_intro.pod wml-1.7.4/wml_docs/wml_intro.pod
--- wml-1.7.4-6.1/wml_docs/wml_intro.pod	Mon Sep 20 15:12:29 1999
+++ wml-1.7.4/wml_docs/wml_intro.pod	Sat Mar  4 19:41:27 2000
@@ -142,8 +142,8 @@
   
       my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = 
           localtime($time);
-      my ($str) = sprintf("%02d-%02d-%04d %02d:%02d:%02d",
-           $mday, $mon+1, $year+1900, $hour, $min, $sec);
+      my ($str) = sprintf("%04d-%02d-%02d %02d:%02d:%02d",
+           $year+1900, $mon+1, $mday, $hour, $min, $sec);
       return $str;
   }
   </perl>
diff -urN wml-1.7.4-6.1/wml_frontend/wml.src wml-1.7.4/wml_frontend/wml.src
--- wml-1.7.4-6.1/wml_frontend/wml.src	Sat Mar  4 18:46:48 2000
+++ wml-1.7.4/wml_frontend/wml.src	Sat Mar  4 19:45:42 2000
@@ -66,8 +66,8 @@
   
     my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = 
         localtime($time);
-    my ($str) = sprintf("%02d-%02d-%04d %02d:%02d:%02d",
-         $mday, $mon+1, $year+1900, $hour, $min, $sec);
+    my ($str) = sprintf("%04d-%02d-%02d %02d:%02d:%02d",
+         $year+1900, $mon+1, $mday, $hour, $min, $sec);
     return $str;
 }
 
@@ -1527,7 +1527,7 @@
 
 =item WML_SRC_ISOTIME
 
-The last modification time of I<inputfile> in ISO C<dd-mm-yyyy hh:mm:ss> format.
+The last modification time of I<inputfile> in ISO C<yyyy-mm-dd hh:mm:ss> format.
 Useful inside footers include files.
 
 =item WML_SRC_USERNAME
@@ -1545,7 +1545,7 @@
 
 =item WML_GEN_ISOTIME
 
-The current time of generation in ISO C<dd-mm-yyyy hh:mm:ss> format.
+The current time of generation in ISO C<yyyy-mm-dd hh:mm:ss> format.
 Useful inside footers include files.
 
 =item WML_GEN_USERNAME