EHSx: usage of local time | Thales IoT Developer Community
June 8, 2015 - 2:40pm, 2199 views
I'm using the EHS6 module and in my current project I need to use local time (Europe/Amsterdam) including daylight saving. The first problem is that the current firmware does only support one timezone: GMT.
My approach is to extend the abstract TimeZone class and implement all time zone specific rules. This is working but the drawback of this approach is that I always need to use this new class in combination with the Calendar.getInstance(timezone) method.
Now I was wondering if there is any way to register this timezone to the JVM or some other way to set this new one as the default timezone. The abstract TimeZone class has some static method for getting the default timezone etc, but these cannot be overridden.
Anyone any idea?