magtimmermans / com.cyclone-software.sunevents

First Beta Release
6 stars 9 forks source link

REQUEST: Support for Australia #49

Closed smarthomesydney closed 3 years ago

smarthomesydney commented 3 years ago

Hi mate.
Thank you to the app. Very handy for lighting. 🤟

My issue is when I go to use tags in flows (value) is set to Europe's time zone. For example see screenshots. Seasons are incorrect with winter been summer and vice versa. It's reporting summer, but I am winter.

Is it possible to change the time zone on your app? Don't see option in configure page.

Also is it possible to use the current "season" tag in a when or and flow?
Can there be an when/and value of "tag" =?

Thanks again mate

Screenshot_20210816-102411_Homey Screenshot_20210816-102354_Homey

magtimmermans commented 3 years ago

Hi, I will take a look to it. For the seasons I am using a third-party package. I will try too fix it.

magtimmermans commented 3 years ago

Please check this test version, it is hard to test for me. So please let me know what is correct and still wrong. https://homey.app/nl-nl/app/com.cyclone-software.sunevents/Zonnestanden/test/

smarthomesydney commented 3 years ago

Thank you mate! That has done it! 👍 Much Appreciated...

What did you change?

I was doing some digging and seemly the cause of the issue is a change to code by Homey. With system date no longer returning local time instead defaulting to UTC time zone... Below is how some other community devs are getting around it.

"const regex = /(\d\d):(\d\d):(\d\d)/; const timeMatches = sys.dateHuman.match(regex)"