Skip to content

change static variable time_zone? #6675

Closed
@osmtools

Description

@osmtools

I'm using

void configTime(int timezone_sec, int daylightOffset_sec, const char* server1, const char* server2, const char* server3)

with timezone_sec=0 but wondering about that the time after this call is 8 hours in front.

I'm not a c(++) expert, but could it be, that the following as no affect?

time_zone = timezone;

because of the static declaration of time_zone in
static sint32 time_zone = 8 * (60 * 60); // espressif HQ's default timezone

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions