Added TimeService
This commit is contained in:
parent
538b88952e
commit
c7051a40e9
1 changed files with 15 additions and 0 deletions
15
src/Services/TimeService.php
Normal file
15
src/Services/TimeService.php
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
namespace Szurubooru\Services;
|
||||||
|
|
||||||
|
class TimeService
|
||||||
|
{
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
date_default_timezone_set('UTC');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getCurrentTime()
|
||||||
|
{
|
||||||
|
return date('c');
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue