Move Temporal::convert() to DateTimeFormat::convert()

This commit is contained in:
Hypolite Petovan 2018-01-26 21:39:02 -05:00
parent 13fb4a312d
commit 1900da6c42
15 changed files with 77 additions and 77 deletions

View file

@ -1,6 +1,6 @@
<?php
use Friendica\Util\Temporal;
use Friendica\Util\DateTimeFormat;
define("DAV_ACL_READ", "{DAV:}read");
define("DAV_ACL_WRITE", "{DAV:}write");
@ -151,7 +151,7 @@ function vcard_source_compile($vcardsource)
*/
function wdcal_php2MySqlTime($phpDate)
{
return date(Temporal::MYSQL, $phpDate);
return date(DateTimeFormat::MYSQL, $phpDate);
}
/**
@ -160,7 +160,7 @@ function wdcal_php2MySqlTime($phpDate)
*/
function wdcal_mySql2PhpTime($sqlDate)
{
$ts = DateTime::createFromFormat(Temporal::MYSQL, $sqlDate);
$ts = DateTime::createFromFormat(DateTimeFormat::MYSQL, $sqlDate);
return $ts->format("U");
}