Skip to content

Commit

Permalink
Another fix for hours entry
Browse files Browse the repository at this point in the history
  • Loading branch information
mapomatic committed Feb 5, 2019
1 parent 5089191 commit c802d0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions WME-Place-Harmonizer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name WME Place Harmonizer Beta
// @namespace WazeUSA
// @version 1.3.139
// @version 1.3.140
// @description Harmonizes, formats, and locks a selected place
// @author WMEPH Development Group
// @include /^https:\/\/(www|beta)\.waze\.com\/(?!user\/)(.{2,6}\/)?editor\/?.*$/
Expand Down Expand Up @@ -5785,8 +5785,8 @@
// Formats "hour object" into a string.
function formatOpeningHour(hourEntry) {
var dayNames = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
var hours = hourEntry.attributes.fromHour + '-' + hourEntry.attributes.toHour;
return hourEntry.attributes.days.map(day => dayNames[day] + ' ' + hours).join(', ');
var hours = hourEntry.fromHour + '-' + hourEntry.toHour;
return hourEntry.days.map(day => dayNames[day] + ' ' + hours).join(', ');
}
// Pull natural text from opening hours
function getOpeningHours(venue) {
Expand Down

0 comments on commit c802d0b

Please sign in to comment.