28 lines
587 B
PHP
28 lines
587 B
PHP
<?php
|
|
if (!defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
/*
|
|
* InvoicePlane
|
|
*
|
|
* @author InvoicePlane Developers & Contributors
|
|
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com
|
|
* @license https://invoiceplane.com/license.txt
|
|
* @link https://invoiceplane.com
|
|
*/
|
|
|
|
/**
|
|
* Class SetTimezoneClass
|
|
*/
|
|
class SetTimezoneClass
|
|
{
|
|
/**
|
|
* Set UTC as the current timezone if no one was set in the PHP ini
|
|
*/
|
|
public function setTimezone()
|
|
{
|
|
if (!ini_get('date.timezone')) {
|
|
date_default_timezone_set('UTC');
|
|
}
|
|
}
|
|
}
|