Skip to content
Snippets Groups Projects
Commit 6ea9cddf authored by Yoann Guilhem's avatar Yoann Guilhem Committed by Nicola Vigano
Browse files

Bugfix in update_DCT_conf.py (months and minutes were switched)

git-svn-id: https://svn.code.sf.net/p/dct/code/trunk@755 4c865b51-4357-4376-afb4-474e03ccb993
parent b943708e
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ class ConfUpdater(object): ...@@ -16,7 +16,7 @@ class ConfUpdater(object):
def _getNewFilename(self, filepath): def _getNewFilename(self, filepath):
timestamp = datetime.datetime.fromtimestamp(os.path.getmtime(filepath)) timestamp = datetime.datetime.fromtimestamp(os.path.getmtime(filepath))
pieces = os.path.splitext(filepath); pieces = os.path.splitext(filepath);
return (pieces[0] + "-" + timestamp.strftime("%Y-%M-%d-%H-%m") + pieces[1]) return (pieces[0] + "-" + timestamp.strftime("%Y-%m-%d-%H-%M") + pieces[1])
def backup(self, filename): def backup(self, filename):
filepath = os.path.join(self.base_dir, filename) filepath = os.path.join(self.base_dir, filename)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment