Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

getTZOffset returns inaccurate information #1

@rip747

Description

@rip747

The getTZOffset function returns invalid data if you are returning the offset for the same day that the time changed (like today, nov 2, 2008)

This is because on line 123 when getOffset() is called the last param is set to '0' when infact it should be set to '3600000' since time does not officially change on that day until 1AM.

So to fix it line 123 should read:
<cfreturn timezone.getOffset(1, tYear, tMonth, tDay, tDOW, 3600000) / 3600000>

Hope this helps someone else, I was pulling my hair out over it today.

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