Skip to content

Commit

Permalink
Fixed issue #11606: Date/Time filed does not record the answer
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Oct 26, 2016
1 parent 7b57620 commit e3f01b2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions application/libraries/Date_Time_Converter.php
Expand Up @@ -97,9 +97,13 @@ private function _default_date_time_units() {
$this->seconds = '00';
$this->minutes = '00';
$this->hours = '00';
$this->days = '01';
$this->months = '01';
$this->years = '1970';

// Default must be set to "today", otherwise
// saving only hour will calculate wrong timestamp.
// See bug #11606.
$this->days = date('d');
$this->months = date('m');
$this->years = date('Y');
$this->ampm = 'am';
}

Expand Down

0 comments on commit e3f01b2

Please sign in to comment.