1
0
mirror of http://git.whoc.org.uk/git/password-manager.git synced 2024-11-14 07:49:02 +01:00

updated class.recordversion.php to format date into strict datetime

format for mysql databases. Also define the default value to fix the
same strict enforcement
This commit is contained in:
Graham Eades 2019-05-16 12:23:22 +01:00
parent 29b68415ca
commit 8ff8cc9d8d

View File

@ -111,7 +111,7 @@ class recordversion extends POG_Base
}
}
function recordversion($reference='', $header='', $data='', $version='', $previous_version_key='', $previous_version_id='', $creation_date='', $update_date='', $access_date='')
function recordversion($reference='', $header='', $data='', $version='', $previous_version_key='', $previous_version_id='0', $creation_date='', $update_date='', $access_date='')
{
$this->reference = $reference;
$this->header = $header;
@ -119,7 +119,7 @@ class recordversion extends POG_Base
$this->version = $version;
$this->previous_version_key = $previous_version_key;
$this->previous_version_id = $previous_version_id;
$this->creation_date = $creation_date;
$this->creation_date = date( 'Y-m-d H:i:s');
$this->update_date = $update_date;
$this->access_date = $access_date;
}