It is currently May 19th, 2024, 2:51 am

Time measure does not automatically adjust for DST

Report bugs with the Rainmeter application and suggest features.
Bekarfel
Posts: 217
Joined: May 16th, 2012, 5:38 am

Time measure does not automatically adjust for DST

Post by Bekarfel »

Hello, Daylight Savings Time passed last night, and this morning I found that the time reported by the time measure did not update during the night when the system clock updated.
moshi wrote:there are many Rainmeter skins that aren't really useful, so let's add another one.
jsmorley wrote:I have good news and bad news.
First the bad news. [...] We would be happy to have this happen and would love to work with anyone who is feeling ambitious.
Now the good news.
I lied, there isn't any good news...
User avatar
jsmorley
Developer
Posts: 22633
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Time measure does not automatically adjust for DST

Post by jsmorley »

It requires that the skin be refreshed to see the change.

Sent from my Kindle Fire HDX
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

Re: Time measure does not automatically adjust for DST

Post by moshi »

this would do the required refresh automatically:

Code: Select all

[MeasureTZName]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SYSTEM\CurrentControlSet\Control\TimeZoneInformation
RegValue=ActiveTimeBias
OnChangeAction=[!Refresh "#CURRENTCONFIG#"]
User avatar
jsmorley
Developer
Posts: 22633
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Time measure does not automatically adjust for DST

Post by jsmorley »

moshi wrote:this would do the required refresh automatically:

Code: Select all

[MeasureTZName]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SYSTEM\CurrentControlSet\Control\TimeZoneInformation
RegValue=ActiveTimeBias
OnChangeAction=[!Refresh "#CURRENTCONFIG#"]
Nice...
User avatar
jsmorley
Developer
Posts: 22633
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Time measure does not automatically adjust for DST

Post by jsmorley »

The Time measure currently gets the local "timzone" / "offset" when the measure is "constructed", which in Rainmeter terms is when the skin is loaded or refreshed. We are looking at what any possible performance impact there might be with checking that on every update of the measure, and this might be made more automatic in the future, but for now, moshi's Registry measure is a decent solution. Just add it to your clock skins, and the skin will properly follow DST changes without a manual refresh.
User avatar
bobgrosh
Posts: 134
Joined: May 1st, 2011, 10:33 pm

Re: Time measure does not automatically adjust for DST

Post by bobgrosh »

Calender also no longer works.
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

Re: Time measure does not automatically adjust for DST

Post by moshi »

bobgrosh wrote:Calender also no longer works.
http://rainmeter.net/forum/viewtopic.php?f=5&t=17135
Bekarfel
Posts: 217
Joined: May 16th, 2012, 5:38 am

Re: Time measure does not automatically adjust for DST

Post by Bekarfel »

Thanks for all the replies, and thanks for the code moshi!
moshi wrote:there are many Rainmeter skins that aren't really useful, so let's add another one.
jsmorley wrote:I have good news and bad news.
First the bad news. [...] We would be happy to have this happen and would love to work with anyone who is feeling ambitious.
Now the good news.
I lied, there isn't any good news...
poiru
Developer
Posts: 2872
Joined: April 17th, 2009, 12:18 pm

Re: Time measure does not automatically adjust for DST

Post by poiru »

I forgot to mention that this has been fixed for the next Rainmeter beta release.