[csw-devel] SF.net SVN: gar:[16842] csw/mgar/gar/v2/lib/web/pkgdb_web.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Fri Jan 20 10:44:12 CET 2012


Revision: 16842
          http://gar.svn.sourceforge.net/gar/?rev=16842&view=rev
Author:   wahwah
Date:     2012-01-20 09:44:11 +0000 (Fri, 20 Jan 2012)
Log Message:
-----------
pkgdb-web: A silly daylight savings related change.

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/web/pkgdb_web.py

Modified: csw/mgar/gar/v2/lib/web/pkgdb_web.py
===================================================================
--- csw/mgar/gar/v2/lib/web/pkgdb_web.py	2012-01-20 09:43:41 UTC (rev 16841)
+++ csw/mgar/gar/v2/lib/web/pkgdb_web.py	2012-01-20 09:44:11 UTC (rev 16842)
@@ -63,7 +63,7 @@
     def Ago(timedelta):
       # Not sure why there is a time difference between mysql and the datetime
       # module.
-      timezone_diff = 2.0
+      timezone_diff = 1.0
       return "%.1fh" % (timedelta.seconds / 60.0 / 60.0 - timezone_diff)
     pkgs_ago = [(x, Ago(now - x.mtime)) for x in pkgs]
     return render.Srv4List(pkgs_ago)

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list