8000 Timezone messing with hours function · Issue #9 · bkobkobko/SparkTimeAlarms · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Timezone messing with hours function #9
Open
@jacky4566

Description

@jacky4566

Using Photon the timezone function seems to screw with the hours function. Calling Time.hour(3500)); should result in 0 while im getting 18? Really weird.

Code works perfect if I comment out time.zone.

Code:

#include "TimeAlarms/TimeAlarms.h"
#undef now()

void setup() {
Time.zone(-6); //Offending code
}

void loop(){
Serial.println(Time.hour(3500));
Serial.println("...");
delay (1000);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0