It is currently May 19th, 2024, 2:51 am
Time measure does not automatically adjust for DST
-
- Posts: 217
- Joined: May 16th, 2012, 5:38 am
Time measure does not automatically adjust for DST
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...
-
- Developer
- Posts: 22633
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Time measure does not automatically adjust for DST
It requires that the skin be refreshed to see the change.
Sent from my Kindle Fire HDX
Sent from my Kindle Fire HDX
-
- Posts: 1740
- Joined: November 13th, 2012, 9:53 pm
Re: Time measure does not automatically adjust for DST
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#"]
-
- Developer
- Posts: 22633
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Time measure does not automatically adjust for DST
Nice...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#"]
-
- Developer
- Posts: 22633
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Time measure does not automatically adjust for DST
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.
-
- Posts: 134
- Joined: May 1st, 2011, 10:33 pm
Re: Time measure does not automatically adjust for DST
Calender also no longer works.
-
- Posts: 1740
- Joined: November 13th, 2012, 9:53 pm
Re: Time measure does not automatically adjust for DST
http://rainmeter.net/forum/viewtopic.php?f=5&t=17135bobgrosh wrote:Calender also no longer works.
-
- Posts: 217
- Joined: May 16th, 2012, 5:38 am
Re: Time measure does not automatically adjust for DST
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...
-
- Developer
- Posts: 2872
- Joined: April 17th, 2009, 12:18 pm
Re: Time measure does not automatically adjust for DST
I forgot to mention that this has been fixed for the next Rainmeter beta release.