homA
homA copied to clipboard
Format Solar times in localtime
@binarybucks does this have to be handled within the solar component?
Asking because setting the TZ environment variable before starting the node process should work. The only necessary changes to the code would we to use toLocaleTimeString().
An alternative would be to use something like timezone-js.
Btw. For me the solar component already returns the correct sunrise and sunset times as it is right now, my TZ environment variable isn's set either.