We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
DateTime.difference
1 parent bc8606c commit 8ad7661Copy full SHA for 8ad7661
sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart
@@ -436,7 +436,7 @@ class DateTime {
436
437
@patch
438
Duration difference(DateTime other) {
439
- return Duration(milliseconds: _value - other._value);
+ return Duration(milliseconds: _value - other.millisecondsSinceEpoch);
440
}
441
442
sdk/lib/_internal/js_runtime/lib/core_patch.dart
@@ -330,7 +330,7 @@ class DateTime {
330
331
332
333
- return new Duration(milliseconds: _value - other._value);
+ return new Duration(milliseconds: _value - other.millisecondsSinceEpoch);
334
335
336
0 commit comments