chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
common.get_wiki_timestamp() for posting timestamps to wiki log pages
[fdroidserver.git]
/
fdroidserver
/
common.py
diff --git
a/fdroidserver/common.py
b/fdroidserver/common.py
index 06d40faab5b1a870b7e44f155a1cc33e0081a54f..439a999162a425a5570def696e4325e9cbb82c6b 100644
(file)
--- a/
fdroidserver/common.py
+++ b/
fdroidserver/common.py
@@
-3010,3
+3010,8
@@
def get_examples_dir():
examplesdir = prefix + '/examples'
return examplesdir
+
+
+def get_wiki_timestamp():
+ """Return current time in the standard format for posting to the wiki"""
+ return time.strftime("%Y-%m-%d %H:%M:%SZ", time.gmtime())