Skip to content

Commit

Permalink
fixed date mismatch issue with exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
szendeh-mit committed Dec 19, 2014
1 parent 2454f8a commit a698b1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/libhours.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function buildCompleteHoursObject(data, date) {
_.each(data['Holidays and Special Hours'].elements.slice(1), function(lib) {
for (var i=0; i < 7; i++) {
var library = lib.location;
var date = dates_per_day[i].format('MM/DD/YYYY');
var date = dates_per_day[i].format('M/D/YYYY');
var day_name = names_per_day[i];
var semester = semester_per_day[i].semestername;

Expand Down
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// what to do with the hoursObject once it's been built
function processHours(data, tabletop) {
// get page_date however you want, I'm just defaulting to new Date
var date = new Date(2014, 11, 19);
var date = new Date(2014, 11, 31);

// all libs/entire week
var completeHoursObject = buildCompleteHoursObject(data, date);
Expand Down

0 comments on commit a698b1b

Please sign in to comment.