86859d3324
We emitted an extra 0 for Dates that had ms == 10. Fixes issue 1386. Review URL: https://chromiumcodereview.appspot.com//10310145 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7647 260f80e4-7a28-3924-810f-c04153c831b5
13 lines
436 B
Dart
13 lines
436 B
Dart
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
// At some point dart was emitting a bad padding 0 for Dates where the ms were
|
|
// ending with 10.
|
|
|
|
main() {
|
|
String s = "2012-01-30 08:30:00.010";
|
|
Date d = new Date.fromString(s);
|
|
Expect.equals(s, d.toString());
|
|
}
|