Skip to content

Commit

Permalink
fix: Moment should keep weekday correct
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Nov 30, 2019
1 parent 9cbde8d commit d81d092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generate/moment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { GenerateConfig } from '.';
const generateConfig: GenerateConfig<Moment> = {
// get
getNow: () => moment(),
getWeekDay: date => date.weekday(),
getWeekDay: date => date.locale('en_US').weekday(),
getYear: date => date.year(),
getMonth: date => date.month(),
getDate: date => date.date(),
Expand Down

1 comment on commit d81d092

@vercel
Copy link

@vercel vercel bot commented on d81d092 Nov 30, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.