diff --git a/src/assets/js/frontend_book_api.js b/src/assets/js/frontend_book_api.js index 341c25d7..739546ad 100755 --- a/src/assets/js/frontend_book_api.js +++ b/src/assets/js/frontend_book_api.js @@ -71,6 +71,8 @@ window.FrontendBookApi = window.FrontendBookApi || {}; var currColumn = 1; $('#available-hours').html('
'); + var timeFormat = GlobalVariables.timeFormat === 'regular' ? 'h:mm tt' : 'HH:mm'; + $.each(response, function (index, availableHour) { if ((currColumn * 10) < (index + 1)) { currColumn++; @@ -78,7 +80,7 @@ window.FrontendBookApi = window.FrontendBookApi || {}; } $('#available-hours div:eq(' + (currColumn - 1) + ')').append( - '' + Date.parse(availableHour).toString(GlobalVariables.timeFormat) + '