Skip to content

configTime and time seem to ignore DST #2505

Closed
@tzapu

Description

@tzapu

Basic Infos

configTime and time seem to ignore DST

Hardware

Hardware: ESP-12
Core Version: latest master

Description

doing a config time, with DST offset does not seem to be actually doing anything to returned time. Time zone offset applies alone.

Sketch

#include <Arduino.h>

void setup() {
  configTime(2 * 3600, 1 * 3600, "pool.ntp.org", "time.nist.gov");
  delay(2000);
  time_t now = time(nullptr);
  Serial.println(ctime(&now));
}

void loop() {

}

Debug Messages

Expected GMT + 3 to be printed. It actually prints GMT + 2

Cheers

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions