Skip to content

Commit

Permalink
Move back to not utc dates (pre #18) (fix #26)
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl committed May 31, 2015
1 parent fbb0274 commit 462b4aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/CalendarUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var CalendarUtils = {
var firstOfMonth = m.clone().startOf('month');
var lastOfMonth = m.clone().endOf('month');

var currentDay = firstOfMonth.clone().utc();
var currentDay = firstOfMonth.clone();
var currentWeek = [];
var weeksInMonth = [];

Expand Down
2 changes: 1 addition & 1 deletion example/src/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import moment from 'moment';
const Utils = {

valueToDate(s) {
var date = moment.utc(s, "YYYY-MM-DD", true);
var date = moment(s, "YYYY-MM-DD", true);
return date.isValid() ? date : null;
},

Expand Down
2 changes: 1 addition & 1 deletion src/CalendarUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const CalendarUtils = {
const firstOfMonth = m.clone().startOf('month');
const lastOfMonth = m.clone().endOf('month');

var currentDay = firstOfMonth.clone().utc();
var currentDay = firstOfMonth.clone();
var currentWeek = [];
var weeksInMonth = [];

Expand Down

0 comments on commit 462b4aa

Please sign in to comment.