1
0
Fork 0

Bugfix for bugfix :-)

This commit is contained in:
Michael 2017-02-23 05:45:06 +00:00
commit ffeae7e048
2 changed files with 3 additions and 3 deletions

View file

@ -93,9 +93,9 @@ class dbm {
* @param string $date a date string in any format
* @return string SQL style date string
*/
public static function date($date) {
public static function date($date = 'now') {
$timestamp = strtotime($date);
return date('Y-m-d H:i:s');
return date('Y-m-d H:i:s', $timestamp);
}
}
?>