Bugfix for bugfix :-)
This commit is contained in:
parent
c84565633e
commit
ffeae7e048
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue