You are correct about Seasons and Locale. The one that was in 12 hour had a US locale. The one that was in 24 hour had a GB locale. When I fixed the locale of the latter, it went to 12-hour.
Note though: When I changed "hour =" to "%I:%M %p", it had no effect. I had to change the locale to get it to work the way I wanted. Thanks, Bob On Wednesday, July 8, 2020 at 10:59:16 PM UTC-4, gjr80 wrote: > > 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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/99ec4b1c-e16f-469a-8401-6892588d12f8o%40googlegroups.com.