浏览代码

Add comment about trouble : character

Guénaël Muller 6 年前
父节点
当前提交
0f8560a586
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      tracim/tracim/lib/utils.py

+ 4 - 0
tracim/tracim/lib/utils.py 查看文件

@@ -187,8 +187,12 @@ def current_date_for_filename() -> str:
187 187
     """
188 188
     ISO8601 current date, adapted to be used in filename (for
189 189
     webdav feature for example), with trouble-free characters.
190
+
190 191
     :return: current date as string
191 192
     """
193
+    # INFO - G.M - 19-03-2018 - As ':' is in transform_to_do_bdd method in
194
+    # webdav utils, it may cause trouble. So, it should be replaced to
195
+    # a character which will not change in bdd.
192 196
     return datetime.datetime.now().isoformat().replace(':', '.')
193 197
 
194 198
 class TracimEnforceHTTPS(BaseMiddleware):