riainvoice/application/hooks/SetTimezoneClass.php
gandhimathi Bharathirajan c940cb1a2c all files
2017-09-11 14:38:03 +05:30

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');
}
}
}