| Index: lib/compiler/implementation/lib/js_helper.dart
|
| diff --git a/lib/compiler/implementation/lib/js_helper.dart b/lib/compiler/implementation/lib/js_helper.dart
|
| index c091ce24d3d9badfe1d696dce556fc244cfd4651..afd34a9022e7b516ea255f10e5e7330e92e62f3e 100644
|
| --- a/lib/compiler/implementation/lib/js_helper.dart
|
| +++ b/lib/compiler/implementation/lib/js_helper.dart
|
| @@ -544,9 +544,11 @@ class Primitives {
|
| }
|
|
|
| static getWeekday(receiver) {
|
| - return (receiver.isUtc)
|
| + int weekday = (receiver.isUtc)
|
| ? JS('int', @'#.getUTCDay()', lazyAsJsDate(receiver))
|
| : JS('int', @'#.getDay()', lazyAsJsDate(receiver));
|
| + // Adjust by one because JS weeks start on Sunday.
|
| + return (weekday + 6) % 7 + 1;
|
| }
|
|
|
| static valueFromDateString(str) {
|
|
|