Skip to content

Date cannot handle leap seconds #3763

Closed
@DartBot

Description

@DartBot

This issue was originally filed by dhasenan@gmail.com


http://en.wikipedia.org/wiki/Leap_second

new Date(2008, 12, 31, 17, 59, 60, 0, false)

This yields:

Unhandled exception:
Illegal argument(s):
 0. Function: 'DateImplementation.DateImplementation.' url: 'bootstrap_impl' line:88 col:42
 1. Function: '::main' url: 'file:///usr/local/google/home/dhasenan/dart/tz/timetest.dart' line:4 col:9

The inability to represent leap seconds means that an application could be mistaken about the current time by as much as 25 seconds, presently, and the divergence will only get worse over time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.closed-as-intendedClosed as the reported issue is expected behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions