Skip to content

Commit

Permalink
Ignore date/time checking in browser for now
Browse files Browse the repository at this point in the history
  • Loading branch information
gizmocuz committed May 21, 2024
1 parent d9c4623 commit d352e73
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions www/app/timers/factories.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,14 @@ define(['app'], function (app) {
var pickedDate = new Date(config.date);
var checkDate = new Date(pickedDate.getFullYear(), pickedDate.getMonth(), pickedDate.getDate(), config.hour, config.min, 0, 0);
var nowDate = new Date();

/*
GizMoCuz: This does not seem to work when working from a remote location with a different timezone (like UTC-6.00)
if (checkDate < nowDate) {
return $.t('Invalid Date selected!');
var ret = $.t('Invalid Date selected!');
ret+=" (" + checkDate.toLocaleString() + " < " + nowDate.toLocaleString() + ")";
return ret;
}
*/
}

if (config.timertype == 12) {
Expand Down

0 comments on commit d352e73

Please sign in to comment.