You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gump.apache.org by aj...@apache.org on 2004/10/16 16:12:45 UTC
svn commit: rev 54923 - in gump/trunk: . cron python/gump/util python/tool
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')