Skip to content
This repository has been archived by the owner on Feb 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1 from hannesj/patch-1
Browse files Browse the repository at this point in the history
Set time zone for formatting times
  • Loading branch information
sugyan committed Jul 21, 2018
2 parents 45b6452 + 97c115e commit 815eb35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/assets/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class Main extends React.Component<IMainProps, {}> {
}).then((json) => {
const { fetchTimeTable } = this.props;
fetchTimeTable(json.map((e: any) => {
e.start = moment(e.start * 1000);
e.end = moment(e.end * 1000);
e.start = moment(e.start * 1000).utcOffset('+09:00');
e.end = moment(e.end * 1000).utcOffset('+09:00');
e.day = e.start.format('MM-DD');
return e;
}));
Expand Down

0 comments on commit 815eb35

Please sign in to comment.