Skip to content

Commit

Permalink
issue #9169 solved
Browse files Browse the repository at this point in the history
  • Loading branch information
GABBAR1947 committed Mar 2, 2016
1 parent bc9ac24 commit 3a5de3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/cms/html/html.php
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,8 @@ public static function calendar($value, $name, $id, $format = '%Y-%m-%d', $attri
{
$tz = date_default_timezone_get();
date_default_timezone_set('UTC');
$inputvalue = strftime($format, strtotime($value));
$temp = DateTime::createFromFormat("Y-m-d H:i:s",$value);
$inputvalue = $temp->format(str_replace('%','',$format));
date_default_timezone_set($tz);
}
else
Expand Down

0 comments on commit 3a5de3d

Please sign in to comment.