Also, if you want to force a locale for moment.js, you could edit bin/user/belchertown.py at line 85 <https://github.com/poblabs/weewx-belchertown/blob/master/bin/user/belchertown.py#L85> and set it to system_locale_js = "en-US". Restart weewx and see
On Monday, April 1, 2019 at 1:41:05 PM UTC-4, HoracioDos wrote: > > Hello Pat. > I gave me the hint to start with. I started to replace some formats from > "LLLL" to "L, LTS" and "LL" to "L" inside index and records templates. I > usualy set system locale to "en_US" and in very few occasions to "es_AR", > because I don't like spanish long date format. Acording to moments.js docs, > there are a lot of options to play with. > Thanks! > > On Monday, April 1, 2019 at 10:07:42 AM UTC-3, Pat wrote: >> >> Belchertown skin uses moment.js for a "pretty" and consistent time and >> date representation across all locales. Please open an issue on GitHub so I >> can understand what you are looking for and to track this better. >> >> On Monday, April 1, 2019 at 8:36:29 AM UTC-4, HoracioDos wrote: >>> >>> Hello. >>> I can't find a way to set time formats for Belchertown skin without >>> changing system locale. It seems it doesn't honour time formats in >>> weewx.conf or I'm doing it wrong. Seasons skin works fine. >>> >>> Current system locale >>> LANG=C.UTF-8 >>> LANGUAGE= >>> LC_CTYPE="C.UTF-8" >>> LC_NUMERIC=es_AR.UTF-8 >>> LC_TIME="C.UTF-8" >>> LC_COLLATE="C.UTF-8" >>> LC_MONETARY=es_AR.UTF-8 >>> LC_MESSAGES="C.UTF-8" >>> LC_PAPER=es_AR.UTF-8 >>> LC_NAME=es_AR.UTF-8 >>> LC_ADDRESS=es_AR.UTF-8 >>> LC_TELEPHONE=es_AR.UTF-8 >>> LC_MEASUREMENT=es_AR.UTF-8 >>> LC_IDENTIFICATION=es_AR.UTF-8 >>> LC_ALL= >>> >>> I changed weewx.conf in [[Defaults]] -> [[[Units]]] and inside >>> Belchertown skin section and skin.conf too. >>> hour = %H:%M >>> day = %H:%M >>> week = %H:%M on %A >>> month = %d/%m/%y %H:%M >>> year = %d/%m/%y %H:%M >>> rainyear = %d/%m/%y %H:%M >>> current = %d/%m/%y %H:%M >>> ephem_day = %H:%M >>> ephem_year = %d/%m/%y %H:%M >>> >>> Thanks!! >>> >>> -- 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. For more options, visit https://groups.google.com/d/optout.