Commits

Anonymous committed 073da3b

Fixed the due date calculation on client-side (still not perfect - should be by date & not hours from now)

  • Participants
  • Parent commits 7cc8c06

Comments (0)

Files changed (1)

static/js/mylibs/maps-models.js

             var sd_parts = parse_date(this.get("schedule_date"));
             var sd = new Date(parseInt(sd_parts[1]), parseInt(sd_parts[2])-1, parseInt(sd_parts[3]));
             var tod = new Date();
-            return tod >= sd;
+            return (tod-sd) > 24*60*60*1000;
         }
         return false;
     }