Skip to content
This repository was archived by the owner on Nov 15, 2019. It is now read-only.
This repository was archived by the owner on Nov 15, 2019. It is now read-only.

Fix browser issue in datetimepicker version 2.3.12 #356

Description

@ThomProbst

datetimepicker 2.3.11 and before relies on the output of new Date().toString() in a buggy way.

Expected output: Fri Aug 18 2017 15:59:09 GMT+0200 (Central Europe Daylight Time)
Actual output in some browsers: Fri Aug 18 2017 15:59:59 GMT+0200

Buggy code: this.defaultTimeZone = (new Date).toString().split("(")[1].slice(0, -1);

This is fixed in version 2.3.12 of datetimepicker. Please upgrade to at least this version (current version is 2.4.4) .

I could provide a pull request if you like.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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