Skip to content

Commit

Permalink
Must use parseExact() with the format specifier.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Aug 22, 2014
1 parent 5f65556 commit 6b45730
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kronolith/js/kronolith.js
Expand Up @@ -5858,7 +5858,7 @@ KronolithCore = {

$('kronolithEventStartTime').setValue(ev.st);
this.knl.kronolithEventStartTime.setSelected(ev.st);
this.updateFBDate(Date.parse(ev.sd, Kronolith.conf.date_format));
this.updateFBDate(Date.parseExact(ev.sd, Kronolith.conf.date_format));
$('kronolithEventEndTime').setValue(ev.et);
this.knl.kronolithEventEndTime.setSelected(ev.et);
this.duration = Math.abs(Date.parse(ev.e).getTime() - Date.parse(ev.s).getTime()) / 60000;
Expand Down Expand Up @@ -6269,7 +6269,7 @@ KronolithCore = {

fbStartDateHandler: function(start)
{
this.updateFBDate(Date.parse(start, Kronolith.conf.date_format));
this.updateFBDate(Date.parseExact(start, Kronolith.conf.date_format));
this.resetFBRows();
// Need to check visisbility - multiple changes will break the display
// due to the use of .defer() in insertFreeBusy().
Expand Down

0 comments on commit 6b45730

Please sign in to comment.