Thanks a lot Gary! The header part worked perfectly. I´ll try the plots 
tomorrow

On Tuesday, May 4, 2021 at 10:44:10 PM UTC+2 gjr80 wrote:

> Hi,
>
> There are a few ways to handle the date-time in the header. Basically the 
> options come down to changing the format used by the tag used to generate 
> that date-time or altering the default format used by date-time tags in all 
> reports or just the Seasons skin. I suspect you probably want the former.
>
> To change the format used by the tag used to generate that date-time you 
> need to edit skins/Seasons/titlebar.inc and change the following line from 
> (untested):
>
> <p class="lastupdate">$current.dateTime</p>
>
> to:
>
> <p class="lastupdate">$current.dateTime.format(format_string="%Y-%m-%d 
> %H:%M")</p>
>
> Save the file and the change should occur on the next report cycle. For 
> info, the available format codes are listed in the table here 
> <https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes>
> .
>
> For the date-time formats used in the plot labels you need to alter 
> settings under the [ImageGenerator] stanza in the Season skin config file 
> (skins/Seasons/skin.conf), specifically the bottom_label_format setting. 
> The ImageGenerator label options are covered here 
> <http://weewx.com/docs/customizing.htm#Various_label_options> in the 
> Customization Guide. The format codes used by bottom_label_format are the 
> same as linked earlier in this post. Note also that bottom_label_format is 
> set for each set (day, week, month, year) of plots.
>
> The above changes should be retained across WeeWX upgrades but you may 
> wish to make note of your changes should you need to restore them in the 
> future.
>
> Gary
>
> On Wednesday, 5 May 2021 at 05:41:33 UTC+10 p.gil...@gmail.com wrote:
>
>> This should be a simple config question but I have failed. How can I 
>> change the date and time format from something like 05/04/2021 09:15:00 PM 
>> to 2021-05-04 21:15 in the header of the Seasons skin as well as in the day 
>> plots? 
>> Thanks for any support to solve this minor but irritating issue. 
>>
>>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/4333e44e-ed0c-46b1-b5d7-b09ccac22535n%40googlegroups.com.

Reply via email to