Hi,

You haven't said which skin your are using, but since Seasons is the 
default skin for a new/clean 4.1.1 install I will assume you are using 
Seasons.

If you have a look in weewx.conf under [StdReport] [[Defaults]] [[[Units]]] 
you should find a [[[[TimeFormats]]]] stanza as follows:

                # The following section sets the format for each time scale. 
                # The values below will work in every locale, but they may not 
look 
                # particularly attractive. 
                [[[[TimeFormats]]]] 

                hour = %H:%M 
                day = %X 
                week = %X (%A) 
                month = %x %X 

                year = %x %X
                rainyear = %x %X 

                current = %x %X 
                ephem_day = %X
                ephem_year = %x %X


This stanza defines the default date-time formats used by tags in various 
contexts. Unless they have been specifically changed the date-time in the 
Seasons title bar will use the current format and the sunrise/sunset the 
ephem_day format. The %x and %X formats depend on the system locale, so 
systems set to a different locale may in fact show different formats for 
the same date-time data (this was done not to necessarily be correct for 
all users but to at least give all users readable/sensible output). That 
being said on a given system under a default install the time component of 
the current time and sunrise/sunset time should be in the same format (%X) 
as should the format of the date component of the current time and 
sunrise/sunset time (%x). were you by chance looking at your system in the 
morning where the current time would be before midday and the sunset time 
after midday, this could give the appearance of the current time being in 
12 hour format whilst sunrise/sunset is in 24 hour format.

You can of course change the defaults which is quite acceptable and 
encouraged (these changes will survive a WeeWX upgrade). You can also force 
the formats used for each tag by specifying the date-time format to be used 
in the individual tags in the template concerned, again this should be safe 
across upgrades.

Gary


On Thursday, 9 July 2020 11:55:06 UTC+10, K1IW wrote:
>
> I've installed weewx at two different locations.  For the HTML page, on 
> the first, both the current time and sunrise/sunset are displayed in 
> 12-hour time.
> On the second, current time is in 12-hour, but sunrise/sunset are in 
> 24-hour.
>
> I'd like them to both be 12-hour.   I looked at the one that already shows 
> in 12-hour and can't find the string "%I:" in any of the
> configuration files.  I've also diff'd the config files between the 
> servers and can't find any differences that can explain this.
> Granted, there are a LOT of files, so maybe I missed one.
>
> What controls the time format of sunrise/sunset?
>
> Both are weewx 4.1.1
>
>
> Thanks,
> Bob
>
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/587f6f34-1e19-4f74-bcfc-e516de0a7271o%40googlegroups.com.

Reply via email to