timezone API #27

Merged
tecnovel merged 4 commits from dev into dev 2024-06-04 20:45:47 +00:00
tecnovel commented 2024-06-03 22:12:10 +00:00 (Migrated from github.com)

please consider the changes in config.h.template!

Trello Card: https://trello.com/c/xjwMScgJ/79-get-timezone-offset-on-boot-from-api

Changes

the globalTime class get's now the timezone offset via a seperate api so it is not depending on other widgets adn you can configure a seperate location for weather and time if you want to

**please consider the changes in config.h.template!** Trello Card: https://trello.com/c/xjwMScgJ/79-get-timezone-offset-on-boot-from-api ## Changes the globalTime class get's now the timezone offset via a seperate api so it is not depending on other widgets adn you can configure a seperate location for weather and time if you want to
ericthelin (Migrated from github.com) reviewed 2024-06-03 22:23:41 +00:00
@ -9,7 +9,6 @@ GlobalTime::GlobalTime() {
m_timeClient = new NTPClient(m_udp);
ericthelin (Migrated from github.com) commented 2024-06-03 22:21:11 +00:00

I don't think we need to keep the commented version around so just remove it

I don't think we need to keep the commented version around so just remove it
@ -25,8 +24,8 @@ GlobalTime *GlobalTime::getInstance() {
void GlobalTime::updateTime() {
ericthelin (Migrated from github.com) commented 2024-06-03 22:22:49 +00:00

maybe a default value of "-1" or a constant to indicate unset?

maybe a default value of "-1" or a constant to indicate unset?
@ -93,12 +92,29 @@ String GlobalTime::getWeekday() {
return m_weekday;
}
ericthelin (Migrated from github.com) commented 2024-06-03 22:19:22 +00:00

the error should mention deserialization or something to be distinct from the http error

the error should mention deserialization or something to be distinct from the http error
tecnovel (Migrated from github.com) reviewed 2024-06-04 06:28:03 +00:00
@ -25,8 +24,8 @@ GlobalTime *GlobalTime::getInstance() {
void GlobalTime::updateTime() {
tecnovel (Migrated from github.com) commented 2024-06-04 06:28:03 +00:00

ahh, i thought -1 does not work because timezone can also be negative, but the response is already multiplied by 3600 so it should work

ahh, i thought -1 does not work because timezone can also be negative, but the response is already multiplied by 3600 so it should work
ericthelin (Migrated from github.com) approved these changes 2024-06-04 14:30:53 +00:00
Sign in to join this conversation.
No description provided.