Use DateTime::createFromFormat () and allow for the date format configuration
Opened this issue · 0 comments
AnnoyingTechnology commented
### Config.ini
[config]
date_format = "d/m/Y"; to match what is currently assumed.
DateTime::createFromFormat (
Config::get('database','date_format'),
$date,
Config::get('config','timezone')
)->getTimestamp();