John,
I was intrigued as niculskin is not that complex and in its index.html.tmpl
template it just uses plain $current.dateTime (line 39) to display 'Last
updated'. So it should be respecting the standard date/time formats in
niculskin/skin.conf (there are no overrides in weewx.conf - unless the user
had some there before the niculskin install). Still intrigued I fired up a
debain VM running weewx/simulator and installed niculskin using
wee_extension. I don't know whether you encountered any runtime errors
after install but I had to (1) manually install the skins/niculskin/RSS
directory and (2) edit niculskin/skin.conf and under [niculskinLabels]
[[conditions]] I had to change extra_1_temp_humidity to extra1_temp_humidity
and extra_2_temp_humidity to extra2_temp_humidity. None of these should
affect date-time formats though.
When run out of the box (with the aforementioned changes and language = in
niculskin/skin.conf) the 'Last updated' line in index.html was (sorry VM is
not publicly accessible):
<p><i class="fa fa-clock-o" ></i> Last updated 22/01/17 12:50:00</p>
When I make the following change to /niculskin/skin.conf:
[Units]
[[TimeFormats]]
current = %d %b %Y
I get:
<p><i class="fa fa-clock-o" ></i> Last updated 22-Jan-2017 12:40</p>
As it should be. Not that it matters but my locale is coming up AU:
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=
Seems to me that everything is working as it should, I cannot find fault
with niculskin. Personally I don't like making the change skin = niculskin
under [StdReport] [[StandardReport]] in weewwx.conf as the
[[StandardReport]] will tend to lead some people to skins/Standard/skin.conf
(rather than skins/niculskin/skin.conf) if they want to change something
like a date or time format but again that is just an ease of use issue and
would not change the date-time format.
I'll give it some more thought but I am tending to think it is something
peculiar to your install.
Gary
On Sunday, 22 January 2017 01:27:06 UTC+10, John Rye wrote:
>
>
>
> On Sunday, 22 January 2017 03:56:30 UTC+13, John Rye wrote:
>>
>>
>>
>> And replying to self ...
>>
>
> Reverted to Standard skin ... Guess what? Dates are in dd/mm/yy format
>
> The "problem" does not seem to lay with Weewx but with underlaying code
> in the Nico's skin somehow ignoring or overriding weewx.conf.
>
> A pity because I really like that skin ...
>
> John in NZ
>
>
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.