Skip to content

Commit

Permalink
Dev: fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Apr 26, 2016
1 parent a2a7c97 commit 1e547f2
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions application/helpers/frontend_helper.php
Expand Up @@ -2340,17 +2340,3 @@ function getMove()
}
return $move;
}

/**
* The DateTimePicker uses another date-format
* @param string $dateFormat - Like 'yyyy-mm-dd'
* @return string - E.g 'YYYY-MM-DD'
*/
function reverseDateToFitDatePicker($dateformat)
{
// Reverse case, trick from here: http://stackoverflow.com/a/6612519/2138090
$newDateFormat = strtolower($dateformat) ^ strtoupper($dateformat) ^ $dateformat;
$newDateFormat = str_replace("hh", "HH", $newDateFormat); // HH (hours) need still be in upper-case for 00-23 representation (not AM/PM)
return $newDateFormat;
}

0 comments on commit 1e547f2

Please sign in to comment.