We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 500b9f6 commit 58df76aCopy full SHA for 58df76a
src/wtforms/fields/datetime.py
@@ -34,7 +34,8 @@ def __init__(
34
def _value(self):
35
if self.raw_data:
36
return " ".join(self.raw_data)
37
- return self.data and self.data.strftime(self.format[0]) or ""
+ format = self.format[0]
38
+ return self.data and self.data.strftime(format) or ""
39
40
def process_formdata(self, valuelist):
41
if not valuelist:
tox.ini
@@ -11,7 +11,7 @@ deps =
11
babel
12
email_validator
13
commands =
14
- pytest --tb=short --basetemp={envtmpdir} {posargs}
+ pytest --tb=short -l --basetemp={envtmpdir} {posargs}
15
16
[testenv:coverage]
17
deps =
0 commit comments