We have moved at community.getvera.com

Author Topic: Summer time, Vera a week early!  (Read 12117 times)

Offline futzle

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: Summer time, Vera a week early!
« Reply #15 on: March 25, 2013, 04:56:16 am »
wondering if the script would maybe fix issues in the future. thanks!

Only updating the version of uClibc that the underlying OpenWrt is built with will do that. The fix was introduced there in October 2011 but Vera's OpenWrt is older than that.

By my reckoning the 2012 bug will happen again on Sunday March 31, 2019. MCV have until then to integrate the fix from uClibc.

Offline futzle

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: Summer time, Vera a week early!
« Reply #16 on: March 25, 2013, 04:57:36 am »
Does this work on firmware version 1.5.459  also  ??

NFI, sorry. I'm just a user and my one Vera is on a different release. Why don't you try it and tell us what you find out?

Offline Thiemen

  • Jr. Member
  • **
  • Posts: 85
  • Karma: +0/-0
Re: Summer time, Vera a week early!
« Reply #17 on: March 25, 2013, 08:36:32 am »
thanks futzle

Offline Frasier

  • Full Member
  • ***
  • Posts: 196
  • Karma: +1/-1
Re: Summer time, Vera a week early!
« Reply #18 on: March 25, 2013, 08:52:02 am »
Quote
thanks futzle

+1

Offline UKsub

  • Jr. Member
  • **
  • Posts: 51
  • Karma: +0/-1
Re: Summer time, Vera a week early!
« Reply #19 on: March 25, 2013, 10:32:42 am »
Same problem with me too. the code appeared to correct the time problem.
running fimrware v 1.5.408
thanks

Offline wimcranen

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: Summer time, Vera a week early!
« Reply #20 on: March 25, 2013, 10:55:49 am »
Same problem here in The Netherlands with my Vera 3 too.
I'm running firmware v 1.5.408
The code corrected the DST problem.
Thanks a lot.
Grz. Wim.

Offline lolodomo

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: Summer time, Vera a week early!
« Reply #21 on: March 25, 2013, 06:11:59 pm »
Thanks Futzle, script is ok for me too.

Offline ft9

  • Sr. Newbie
  • *
  • Posts: 23
  • Karma: +1/-0
Re: Summer time, Vera a week early!
« Reply #22 on: March 25, 2013, 06:28:15 pm »
Script works great here too.
If you changed your time zone temporarily to avoid this error, make sure you change it back to YOUR timezone and then run the script, otherwise you'll have to run it again after.

Futzle, is there a way to make this permanent? Like editing timezone_UI5.json on our vera?

Thank you.

Offline futzle

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: Summer time, Vera a week early!
« Reply #23 on: March 25, 2013, 08:40:36 pm »
Is there a way to make this permanent? Like editing timezone_UI5.json on our vera?

That'd probably work. The file is /www/cmh/timezone.json and you need only edit the city or cities that you care about.

I don't know if a future firmware update would overwrite your changes.

Offline pagewrite

  • Sr. Newbie
  • *
  • Posts: 35
  • Karma: +0/-0
Re: Summer time, Vera a week early!
« Reply #24 on: March 26, 2013, 04:13:08 am »
Oh thank goodness for that!  My lights were coming on an hour early and it was driving me nuts!

{Big sigh of relief}

Offline jjmixman

  • Sr. Newbie
  • *
  • Posts: 20
  • Karma: +0/-0
Re: Summer time, Vera a week early!
« Reply #25 on: March 26, 2013, 02:45:48 pm »
Is it me, or is this not outrageously bad software engineering on MCV's part ?

The fix for 2012 clearly works because it hard codes an assumption that there are 4 instead of 5 Sundays into March. Was it not obvcous to any programmer with half a brain that this would go wrong again in in 2013.

It's the 21st century. Can we not expect a hi-tech internet appliance like Vera 3 to manage to cope with daylight saving without the need to hack about in it's Linux via SSH?

Come on MCV, sort this out properly and issue a firmware update.  ::)

Offline jjmixman

  • Sr. Newbie
  • *
  • Posts: 20
  • Karma: +0/-0
Re: Summer time, Vera a week early!
« Reply #26 on: March 26, 2013, 03:12:40 pm »
BTW, @Futzle, there being 4 Sundays in October 2013 should the 10.4.0 bit not stay at 10.4.0 rather than revert to 10.5.0?

There were 5 Sundays in October 2011 and 4 in October 2012 so the fix from 10.5.0 to 10.4.0 was correct for last year but should - I think- remain at 10.4.0 for this year.

Offline futzle

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: Summer time, Vera a week early!
« Reply #27 on: March 26, 2013, 04:41:36 pm »
Is it me, or is this not outrageously bad software engineering on MCV's part ?
...
It's the 21st century. Can we not expect a hi-tech internet appliance like Vera 3 to manage to cope with daylight saving without the need to hack about in it's Linux via SSH?

The bug isn't in MiOS code, it's in the underlying OS, actually it's in the C runtime for the underlying OS.  It was only discovered there in October 2011.  Granted, it was fixed within a week there, but for embedded products with lifetimes measured in years, that's cold comfort.

You may recall that even large companies like Apple screw up dates, daylight saving and time zones, with one problem as recent as the first week of this year. I once wrote a time-zone library (in Forth, there's a fun language).  It had daylight saving bugs too.  Time is HARD.

The only blame I apportion to MCV is that they didn't issue a fix between October 2012 and now.

BTW, @Futzle, there being 4 Sundays in October 2013 should the 10.4.0 bit not stay at 10.4.0 rather than revert to 10.5.0?
There were 5 Sundays in October 2011 and 4 in October 2012 so the fix from 10.5.0 to 10.4.0 was correct for last year but should - I think- remain at 10.4.0 for this year.

"5" means "last", not "fifth" in these strings.  See the documentation.

Offline jjmixman

  • Sr. Newbie
  • *
  • Posts: 20
  • Karma: +0/-0
Re: Summer time, Vera a week early!
« Reply #28 on: March 26, 2013, 05:00:49 pm »
Hmmm....

As you say, '5' in the TZ files is defined to mean last so 3.5.0 / 10.5.0 was and is correct.  Apologies for doubting you on that one! I guess the issue is that something deeper down in uLibC doesn't implement the '5' properly and the patch to 3.4.0 / 10.4.0 was a work around.

Nevertheless, MCV haven't exactly rushed to deal with it properly.

Offline junglewave

  • Sr. Newbie
  • *
  • Posts: 35
  • Karma: +0/-0
Re: Summer time, Vera a week early!
« Reply #29 on: March 27, 2013, 07:25:54 pm »
Thanks for the script Futzle.....it works a treat

JW