python strftime doesn't work properly on Alpine Linux.
On Alpine Linux builds strftime returns empty string whenever dash is used.
Ubuntu/Mac/Debian & Python 2.7.10:
$ python
Python 2.7.10 (default, Oct 23 2015, 19:19:21)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin
>>> import datetime
>>> datetime.datetime.now().strftime('%I')
'04'
>>> datetime.datetime.now().strftime('%-I')
'4'
alpine:3.4
PYTHON_VERSION=2.7.12-r0
$ python
Python 2.7.12 (default, Jun 29 2016, 08:57:23)
[GCC 5.3.0] on lType "help", "copyright", "credits" or "license" for more information.inux2
>>> import datetime
>>> datetime.datetime.now().strftime('%I')
'01'
>>> datetime.datetime.now().strftime('%-I')
''
(from redmine: issue id 5907, created on 2016-07-15, closed on 2019-02-25)
- Changesets:
- Revision f6baa2aa by Timo Teräs on 2017-06-01T10:31:29Z:
main/musl: cherry-pick upstream fixes, add strftime gnu extensions
ref #5907
- Revision b4bedb97 by Timo Teräs on 2017-07-05T11:50:20Z:
main/musl: cherry-pick upstream fixes, add strftime gnu extensions
ref #5907