gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: rev 54923 - in gump/trunk: . cron python/gump/util python/tool
Date Sat, 16 Oct 2004 14:12:45 GMT
Author: ajack
Date: Sat Oct 16 07:12:45 2004
New Revision: 54923

Modified:
   gump/trunk/cron/gump.py
   gump/trunk/gump.py
   gump/trunk/python/gump/util/smtp.py
   gump/trunk/python/tool/commitCheck.py
Log:
Use %Y (4 digit date) not %y (2 digits) for dates, especially in SMTP header.

Modified: gump/trunk/cron/gump.py
==============================================================================
Binary files. No diff available.

Modified: gump/trunk/gump.py
==============================================================================
--- gump/trunk/gump.py	(original)
+++ gump/trunk/gump.py	Sat Oct 16 07:12:45 2004
@@ -189,8 +189,8 @@
         sys.stdout.write('-            Apache Gump \n')
         sys.stdout.write('- ************************************\n')
         sys.stdout.write('- GUMP run on host   : ' + hostname + '\n')
-        sys.stdout.write('- GUMP run @         : ' + time.strftime('%d %b %y %H:%M:%S', time.localtime())
+ '\n')
-        sys.stdout.write('- GUMP run @  UTC    : ' + time.strftime('%d %b %y %H:%M:%S', time.gmtime())
+ '\n')
+        sys.stdout.write('- GUMP run @         : ' + time.strftime('%d %b %Y %H:%M:%S', time.localtime())
+ '\n')
+        sys.stdout.write('- GUMP run @  UTC    : ' + time.strftime('%d %b %Y %H:%M:%S', time.gmtime())
+ '\n')
         sys.stdout.write('- GUMP run by Python : ' + `sys.version` + '\n')
         sys.stdout.write('- GUMP run by Python : ' + `sys.executable` + '\n')
         sys.stdout.write('- GUMP run by Gump   : ' + GUMP_VERSION + '\n')

Modified: gump/trunk/python/gump/util/smtp.py
==============================================================================
--- gump/trunk/python/gump/util/smtp.py	(original)
+++ gump/trunk/python/gump/util/smtp.py	Sat Oct 16 07:12:45 2004
@@ -60,7 +60,7 @@
         """E-mail"""
         # Add the From: and To: headers at the start!
         data = ("Date: %s\r\nFrom: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n%s%s"
-           	% (	time.strftime('%a, %d %b %y %H:%M:%S %Z', time.localtime()),
+           	% (	time.strftime('%a, %d %b %Y %H:%M:%S %Z', time.localtime()),
                         #self.fromaddr.encode(),
                         self.fromaddr, 
            		string.join(self.toaddrs, ", "),

Modified: gump/trunk/python/tool/commitCheck.py
==============================================================================
--- gump/trunk/python/tool/commitCheck.py	(original)
+++ gump/trunk/python/tool/commitCheck.py	Sat Oct 16 07:12:45 2004
@@ -147,7 +147,7 @@
         hostname = socket.gethostname()
 
         log.write('- GUMP run on host   : ' + hostname + '\n')
-        log.write('- GUMP run @         : ' + time.strftime('%d %b %y %H:%M:%S', time.gmtime())
+ '\n')
+        log.write('- GUMP run @         : ' + time.strftime('%d %b %Y %H:%M:%S', time.gmtime())
+ '\n')
         log.write('- GUMP run by Python : ' + `sys.version` + '\n')
         log.write('- GUMP run on OS     : ' + `os.name` + '\n')
         log.write('- GUMP run in env    : \n')

Mime
View raw message