I agree with pros and cons. It seems very hard to allow some customization from skin.conf. Once user knows where and how to change date time formats, it's not too difficult. Perhaps with a little mention in READMEmd this issue could be addressed.
On Monday, April 1, 2019 at 2:52:11 PM UTC-3, Pat wrote: > > Sounds good and I'm glad you found a way to customize it. > > I had to use moment.js because of the background updates and the various > time formats that update with it (header, forecast, earthquake, charts). > The pro is that all the dates will look consistent, the con is that it > doesn't allow for much user customization. I've thought about moving all of > the "LLLL", "LLL", and others to some variables to try and make it easier > to change from skin.conf or something, but there's so many dates that not > all may fall into that standard grouping. It's a small challenge to keep it > all looking consistent. > > 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
