Cannot display the time correctly

97 views
Skip to first unread message

Yannick M

unread,
Sep 30, 2020, 10:58:15 PM9/30/20
to weewx-user

 Hello, I am so sorry to bother you for this. This is the first time that I have made a site under debian, I tried to find the answer in the weewx and group docs but I didn’t find something that works. 
My problem is simple. Currently the date is displayed this way:

 October 1, 2020, 4.44 pm I would like it to become: October 1, 2020, 16:44 . 

I use the belchertown skin, I have to pay [[[[TimeFormats]]]] day =% H:% M week =% H:% M on% A month =% d-% b-% Y% H:% M year =% d-% b-% Y% H:% M rainyear =% d-% b-% Y% H:% M current =% d-% b-% Y% H:% M ephem_day =% H:% M ephem_year =% d-% b-% Y% H:% 


 But it doesn't work anyway, do you have an idea please?  
How to change the order, put to 12h> 24h and translate the months in french please?

Best regards

Greg from Oz

unread,
Sep 30, 2020, 11:37:26 PM9/30/20
to weewx-user
type man date
 in a console.

I assume the variables are the same in belchertown.
If you type this in a console:
date '+%Y/%m/%d %A %H:%M %b '
You get this:
2020/10/01 Thursday 13:34 Oct 
Upper case %B gives the full name of the month.

Also type locale in a console
This will show you if you are using the local French local and that should convert the Months (%b) into French
sudo dpkg-reconfigure locales
Use the above if the locale is wrong.

Maybe that will work for you.I haven't tried it.

Yannick M

unread,
Oct 1, 2020, 9:18:51 AM10/1/20
to weewx-user
Thank you very much! With this command line I could actually see that the time was in English on the server. Thanks to the sudo dpkg-reconfigure locales command, I was able to select French. 

 After stopping and restarting weewx, the changes do not apply, do you have to restart something else? Thanks a lot for your help!  

Greg Reive

unread,
Oct 1, 2020, 9:32:27 AM10/1/20
to weewx...@googlegroups.com

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/1IVqPP5KFt4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/47d96cb7-4b9e-4f3e-8101-f685715b0e5cn%40googlegroups.com.

Yannick M

unread,
Oct 1, 2020, 9:39:13 AM10/1/20
to weewx...@googlegroups.com

i have seen this explanation on the belchertown tutorial before, but i dont see how it applied. I am used to building websites but this is my first time working on debian, and my skills are limited.  

Yannick M

unread,
Oct 1, 2020, 11:55:20 AM10/1/20
to weewx-user

After rebbot of the serveur and reboot of wewx...it works !! Many thanks!!

Greg from Oz

unread,
Oct 1, 2020, 6:21:09 PM10/1/20
to weewx-user
After I answered you it was late and I thought you should reboot the server even later in the night.
Glad it worked.

My motto is " if in doubt bomb it out" (reboot)
Reply all
Reply to author
Forward
0 new messages