geodesign / django-raster

Django-raster allows you to create tiled map services (TMS) and raster map algebra end points for web maps. It is Python-based, and requires GeoDjango with a PostGIS backend.
BSD 3-Clause "New" or "Revised" License
96 stars 39 forks source link

Update parser.py #15

Closed pierotofy closed 7 years ago

pierotofy commented 7 years ago

%T is not a valid format on Windows and will throw an exception: ValueError: Invalid format string

To reproduce run on a Windows machine: "[{0}] ".format(datetime.datetime.now().strftime('%Y-%m-%d %T'))

It's better to use %H:%M:%S instead. See relevant discussion: http://stackoverflow.com/questions/26140502/python-invalid-format-string

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 93.973% when pulling 03c49ef85fc65cbd14a6c541759f676daebbf53e on pierotofy:patch-1 into c801de02760c5e1944862605922c9b2bd49ff338 on geodesign:master.

yellowcap commented 7 years ago

Great, thanks @pierotofy !