Chromium Code Reviews| Index: runtime/lib/date_patch.dart |
| diff --git a/runtime/lib/date_patch.dart b/runtime/lib/date_patch.dart |
| index 914aab83ab665996d402587d057b9280d6a924e5..7898957ad17b1c893e9a4d584d5ea7821ce78015 100644 |
| --- a/runtime/lib/date_patch.dart |
| +++ b/runtime/lib/date_patch.dart |
| @@ -31,7 +31,7 @@ patch class DateImplementation { |
| } |
| /* patch */ Duration get timeZoneOffset { |
| - if (isUtc) return new Duration(0); |
| + if (isUtc) return new Duration(); |
|
Lasse Reichstein Nielsen
2012/09/13 09:30:46
If not introducing the zero-duration, be consisten
kasperl
2012/09/13 09:45:50
I'm reluctant to start refactoring these things wh
|
| int offsetInSeconds = _timeZoneOffsetInSeconds(millisecondsSinceEpoch); |
| return new Duration(seconds: offsetInSeconds); |
| } |