Skip to content
Snippets Groups Projects
Commit aba8004c authored by Prasad's avatar Prasad
Browse files

Fixes #1716: Error on report creation DateTime - mm/dd/yyyy format

parent eaa79ffc
No related branches found
No related tags found
No related merge requests found
......@@ -365,7 +365,8 @@ class DateTimeField {
$d = false;
$time = false;
if($user->date_format) {
/* If date-value is other than yyyy-mm-dd */
if(strpos("-", $value) ==3 && $user->date_format) {
list($date, $time) = explode(' ', $value);
if(!empty($date)) {
switch ($user->date_format) {
......@@ -385,4 +386,4 @@ class DateTimeField {
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment