improve customer api & gui
This commit is contained in:
16
common/helpers/AppDateTimeHelper.php
Normal file
16
common/helpers/AppDateTimeHelper.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace common\helpers;
|
||||
|
||||
class AppDateTimeHelper
|
||||
{
|
||||
|
||||
public static function convertMySqlDatetimeToPhpInteger($dateString){
|
||||
if (!isset($dateString) || empty($dateString)){
|
||||
return null;
|
||||
}
|
||||
$unixTime = strtotime($dateString . " UTC");
|
||||
return $unixTime;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user