Mercurial > personal > weather-server
diff weather_server/templates/location.html @ 23:88249e451566
server: show date when last report was >12h ago.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Sun, 10 Nov 2019 19:42:04 -0500 |
parents | a7fe635d1c88 |
children | 7def5611895b |
line wrap: on
line diff
--- a/weather_server/templates/location.html Fri Nov 01 00:48:56 2019 -0400 +++ b/weather_server/templates/location.html Sun Nov 10 19:42:04 2019 -0500 @@ -36,7 +36,9 @@ <p id="timestamp"> <span> <span class="key">Reported</span> - <span class="value">{{ "{:%H:%M}".format(date) }}</span> + <span class="value"> + {{- "{date:{fmt}}".format(date=date, fmt=date_format) -}} + </span> </span> </p> {% else %}