Kitz Forum

Broadband Related => Router Monitoring Software => Topic started by: JamesK on September 29, 2015, 02:00:59 PM

Title: MDWS - Time Zone Error
Post by: JamesK on September 29, 2015, 02:00:59 PM
Afternoon...

I've been using MDWS for several months without any problems. The data source was a small Windows laptop using the HG612 modem stats software attached to the HG612. Due to the modem being located in the kitchen, it wasn't the most convenient device to leave attached 24/7.

So I got hold of a Raspberry Pi, which will be much easier to conceal. I successfully built and installed it with DSLstats. Initially MDWS was reporting no data had been uploaded for nearly an hour despite there being TCP connections to the MDWS servers. After a while the status changed to say the following "User JamesK - Please restart DSLstats which is still reporting time in GMT!". I noticed I had got my user profile to set the timezone to the UK, so I removed that from the profile and rebooted.

I'm yet to see the MDWS site remove the error... So is there anything else I need to do/check? Is there a delay in the MDWS servers picking up the fact I've removed the timezone from the user profile?

Many Thanks....
Title: Re: MDWS - Time Zone Error
Post by: tbailey2 on September 29, 2015, 03:06:23 PM
Hi

Your local clock (from the time embedded in the uploaded log file) is running an hour behind that of the server for whatever reason, hence the message.... The only delay would be one minute if it was corrected and then the message would go away...
Title: Re: MDWS - Time Zone Error
Post by: tbailey2 on September 29, 2015, 04:10:36 PM
Quote
I noticed I had got my user profile to set the timezone to the UK, so I removed that from the profile and rebooted.

What is your location then please if not UK?
Title: Re: MDWS - Time Zone Error
Post by: JamesK on September 29, 2015, 04:35:18 PM
My location is UK... I'll have a logon to the Pi and see what time it's reporting...
Title: Re: MDWS - Time Zone Error
Post by: JamesK on September 29, 2015, 04:51:50 PM
The Pi by default was displaying the time as UTC, so 1 hour behind current BST. I've changed the timezone so it's now reporting the correct BST time on the desktop.
Title: Re: MDWS - Time Zone Error
Post by: tbailey2 on September 29, 2015, 08:08:20 PM
You're still on GMT for the uploads though. Try unloading DSLstats, reloading and restarting it. This rings a bell from when the clocks went forward and there were similar problems..... One user has been like it since April!
Title: Re: MDWS - Time Zone Error
Post by: JamesK on September 29, 2015, 08:50:28 PM
This is really confusing me... here's the output of the date command on the Pi
Quote
root@raspberrypi:/etc# date
Tue Sep 29 20:46:21 BST 2015

Yet the modem output log file starts with an entry that is exactly an hour behind.

I've completely deleted the entire program and all config files it created, and have set-up again from the start and it still persists... very confused  ???
Title: Re: MDWS - Time Zone Error
Post by: NewtronStar on September 29, 2015, 09:04:59 PM
Could you try this ont RPi sudo dpkg-reconfigure tzdata select europe and london and give it a few minutes.
Title: Re: MDWS - Time Zone Error
Post by: JamesK on September 29, 2015, 09:30:58 PM
I'd actually already done this with the tzselect command, and also set it to be the system default using this command:
Quote
sudo cp /usr/share/zoneinfo/Europe/London /etc/localtime
Title: Re: MDWS - Time Zone Error
Post by: JamesK on September 29, 2015, 09:34:52 PM
Could you try this ont RPi sudo dpkg-reconfigure tzdata select europe and london and give it a few minutes.

I've run this command now, and I'll see what it does...
Title: Re: MDWS - Time Zone Error
Post by: JamesK on September 29, 2015, 09:37:26 PM
Could you try this ont RPi sudo dpkg-reconfigure tzdata select europe and london and give it a few minutes.

I've run this command now, and I'll see what it does...

Looks like your command fixed it... logs have now got the current time on them rather than GMT/UTC. Many thanks! :-)
Title: Re: MDWS - Time Zone Error
Post by: NewtronStar on September 29, 2015, 10:47:29 PM
Looks like your command fixed it... logs have now got the current time on them rather than GMT/UTC. Many thanks! :-)

Thats good i'll be using that command again on the RPi when the clocks go back 1HR on the 23rd of October back to dark evenings again  :(