Skip to content

Missing timezone correction in the 3hr forecast time #278

Open
@sendcard

Description

@sendcard

I have used 2.7 inch waveshare epaper. However the time for the forecast are incorrect.

I changed the following
//drawString(x + 8, y - 22, WxForecast[index].Period.substring(11, 16), LEFT);

into this
drawString(x + 8, y - 22, String(ConvertUnixTime(WxForecast[index].Dt + WxConditions[0].Timezone).substring(0,5)), LEFT);

The problem has been fixed.

Image

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