Skip to content
This repository has been archived by the owner on Apr 28, 2021. It is now read-only.

Commit

Permalink
Remove incorrect timezone code
Browse files Browse the repository at this point in the history
  • Loading branch information
fongandrew committed Apr 27, 2016
1 parent 9c7066b commit 0a97016
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ts/Calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
*/

namespace Calendar {
var locale = "Pacific/Auckland";

// Shows a month
export class Month extends React.Component<{date: Date}, {}> {
export class Month extends React.Component<{
date: Date|moment.Moment
}, {}> {
render() {
var date = this.props.date;
var month = moment(date).month();
var start = moment(date).tz(locale).clone()
.startOf('month').startOf('week');
var end = moment(date).tz(locale).clone().endOf('month');
var start = moment(date).clone().startOf('month').startOf('week');
var end = moment(date).clone().endOf('month');
var weeks: Date[] = [];
while (start <= end) {
weeks.push(start.clone().toDate());
Expand Down

0 comments on commit 0a97016

Please sign in to comment.