Skip to content

Date.getTimezoneAbbreviation is wrong #186

@GoogleCodeExporter

Description

@GoogleCodeExporter

    > node
    require('datejs')
    Date.getTimezoneAbbreviation( '+0000' )
    'GMT'

This should be UTC

Also, this part of the documentation:

    var today = Date.today();
    Date.getTimezoneAbbreviation(today.getTimezoneOffset, today.isDayLightSavingsTime()); // "UTC", "GMT", "EST", "PDT", etc.

Is entirely wrong. getTimezoneOffset is not called as a function, and 
isDayLightSavingsTime is spelled wrong, it's not a capital D and it's "Saving" 
not "Savings". Also calling this:

    var today = Date.today();
    Date.getTimezoneAbbreviation( today.getTimezoneOffset(), today.isDaylightSavingTime() );

Returns "null"

Original issue reported on code.google.com by delvarwo...@gmail.com on 28 May 2014 at 7:27

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions