John,> What locale is your server?
> I ask as the only way you would be getting the display on your site would be from the format string "%x %X" on a US locale server.
> However I can't see how the format "%x %X" would be being used?
And replying to self ...
<p><i class="fa fa-clock-o" ></i> Last updated 22/01/17 12:50:00</p>[Units]
[[TimeFormats]]
current = %d %b %Y
<p><i class="fa fa-clock-o" ></i> Last updated 22-Jan-2017 12:40</p>LANG=en_AU.UTF-8
LANGUAGE=en_AU:en
LC_CTYPE="en_AU.UTF-8"
LC_NUMERIC="en_AU.UTF-8"
LC_TIME="en_AU.UTF-8"
LC_COLLATE="en_AU.UTF-8"
LC_MONETARY="en_AU.UTF-8"
LC_MESSAGES="en_AU.UTF-8"
LC_PAPER="en_AU.UTF-8"
LC_NAME="en_AU.UTF-8"
LC_ADDRESS="en_AU.UTF-8"
LC_TELEPHONE="en_AU.UTF-8"
LC_MEASUREMENT="en_AU.UTF-8"
LC_IDENTIFICATION="en_AU.UTF-8"
LC_ALL=
John,
A thought. Are you using wee_reports external or just allowing weewx to generate the reports per archive interval?
Darryn
You will see for me, where I also have the LC_ALL issue, I get the wrong format with "%x %X", even though the rest of my LC_X and en_AU.
>>> import datetime
>>> datetime.datetime.now().strftime("%x %X")
'01/22/17 19:16:00'
>>> import locale
>>> locale.setlocale(locale.LC_ALL,'')
'en_AU.UTF-8'
>>> import datetime
>>> datetime.datetime.now().strftime("%x %X")
'22/01/17 20:35:56'
Gary
>>> import locale
>>> locale.setlocale(locale.LC_ALL,'')
'en_AU.UTF-8'
>>> import datetime
>>> datetime.datetime.now().strftime("%x %X")
'22/01/17 20:35:56'I note that weewx code for 3.7 has the engine run the setlocale() statement. (Tom, was this to fix an issue like this or?... I note that the commit says to just report the locale but it does more than that).
Hi All,
Replying to self - Bad form :-)