Skip to content

Commit

Permalink
This method takes a Date object, not a string.
Browse files Browse the repository at this point in the history
Correct fix for pull request: #129
  • Loading branch information
mrubinsk committed Mar 17, 2015
1 parent f2d0e73 commit a63c832
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions kronolith/js/kronolith.js
Expand Up @@ -6389,9 +6389,12 @@ KronolithCore = {

fbStartDateOnChange: function()
{
this.fbStartDateHandler($F('kronolithEventStartDate'));
this.fbStartDateHandler(Date.parseExact($F('kronolithEventStartDate'), Kronolith.conf.date_format));
},

/**
* @param Date start The start date.
*/
fbStartDateHandler: function(start)
{
this.updateFBDate(start);
Expand Down Expand Up @@ -6810,14 +6813,14 @@ KronolithCore = {
{
switch (field) {
case 'kronolithEventStartDate':
this.fbStartDateHandler($F(field));
this.fbStartDateHandler(Date.parseExact($F(field), Kronolith.conf.date_format));
case 'kronolithEventStartTime':
this.updateEndTime();
break;
case 'kronolithEventEndDate':
case 'kronolithEventEndTime':
this.updateStartTime();
this.fbStartDateHandler($F('kronolithEventStartDate'));
this.fbStartDateHandler(Date.parseExact($F('kronolithEventStartDate'), Kronolith.conf.date_format));
break;
}
},
Expand Down

0 comments on commit a63c832

Please sign in to comment.