incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [28/40] git commit: [#6534] use 0-padding and typical date/time ordering since we're changing wiki delete titles anyway
Date Wed, 30 Oct 2013 17:00:46 GMT
[#6534] use 0-padding and typical date/time ordering since we're changing wiki delete titles
anyway


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/91cfa35c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/91cfa35c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/91cfa35c

Branch: refs/heads/cj/6777
Commit: 91cfa35c531529d965843bd3700067154144e8b0
Parents: baf4d8c
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Fri Oct 25 22:07:13 2013 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Fri Oct 25 22:07:32 2013 +0000

----------------------------------------------------------------------
 ForgeWiki/forgewiki/model/wiki.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/91cfa35c/ForgeWiki/forgewiki/model/wiki.py
----------------------------------------------------------------------
diff --git a/ForgeWiki/forgewiki/model/wiki.py b/ForgeWiki/forgewiki/model/wiki.py
index cfcaac5..7bb78f7 100644
--- a/ForgeWiki/forgewiki/model/wiki.py
+++ b/ForgeWiki/forgewiki/model/wiki.py
@@ -221,7 +221,7 @@ class Page(VersionedArtifact, ActivityObject):
     def delete(self):
         Shortlink.query.remove(dict(ref_id=self.index_id()))
         self.deleted = True
-        suffix = " {dt.hour}:{dt.minute}:{dt.second}.{dt.microsecond} {dt.day}-{dt.month}-{dt.year}".format(dt=datetime.utcnow())
+        suffix = " {:%Y-%m-%d %H:%M:%S.%f}".format(datetime.utcnow())
         self.title += suffix
 
 class WikiAttachment(BaseAttachment):


Mime
View raw message