Allow to use UTC timezone offset ,by Abdussamad
This commit is contained in:
parent
dffee91667
commit
851f2b2650
@ -3,6 +3,9 @@
|
||||
Version 1.5 ()
|
||||
------------------------------------------------------------------------
|
||||
|
||||
* Add new config option to base server time on UTC
|
||||
(http://board.s9y.org/viewtopic.php?f=2&t=15123) (Abdussamad)
|
||||
|
||||
* Use a unique session name for each blog instance, so that multiple
|
||||
s9y installations can live on the same domain and having their
|
||||
own sessions (kleinerChemiker, DrNI)
|
||||
|
@ -480,8 +480,22 @@
|
||||
'type' => 'list',
|
||||
'default' => array(),
|
||||
'permission' => 'siteConfiguration',
|
||||
'flags' => array('probeDefault')),
|
||||
|
||||
'flags' => array('probeDefault'))
|
||||
));
|
||||
if(function_exists('date_default_timezone_set')) {
|
||||
$res['display']['items'][] = array('var' => 'useServerOffset',
|
||||
'title' => INSTALL_OFFSET_ON_SERVER_TIME,
|
||||
'description' => INSTALL_OFFSET_ON_SERVER_TIME_DESC,
|
||||
'type' => 'bool',
|
||||
'default' => true,
|
||||
'permission' => 'blogConfiguration'
|
||||
);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
array_push( $res['display']['items'],
|
||||
array('var' => 'serverOffsetHours',
|
||||
'title' => INSTALL_OFFSET,
|
||||
'description' => INSTALL_OFFSET_DESC,
|
||||
@ -502,8 +516,8 @@
|
||||
'description' => INSTALL_ACL_DESC,
|
||||
'type' => 'bool',
|
||||
'default' => true,
|
||||
'permission' => 'blogConfiguration'),
|
||||
));
|
||||
'permission' => 'blogConfiguration')
|
||||
);
|
||||
|
||||
$res['imagehandling'] =
|
||||
array('title' => INSTALL_CAT_IMAGECONV,
|
||||
|
@ -552,6 +552,8 @@
|
||||
@define('INSTALL', 'Install');
|
||||
@define('ALREADY_INSTALLED', 'Already installed');
|
||||
@define('SELECT_A_PLUGIN_TO_ADD', 'Select the plugin which you wish to install');
|
||||
@define('INSTALL_OFFSET_ON_SERVER_TIME', 'Base offset on server timezone?');
|
||||
@define('INSTALL_OFFSET_ON_SERVER_TIME_DESC', 'Offset entry times on server timezone or not. Select yes to base offset on server timezone and no to offset on GMT.');
|
||||
@define('INSTALL_OFFSET', 'Server time Offset');
|
||||
@define('STICKY_POSTINGS', 'Sticky Postings');
|
||||
@define('INSTALL_FETCHLIMIT', 'Entries to display on frontpage');
|
||||
|
@ -552,6 +552,8 @@
|
||||
@define('INSTALL', 'Install');
|
||||
@define('ALREADY_INSTALLED', 'Already installed');
|
||||
@define('SELECT_A_PLUGIN_TO_ADD', 'Select the plugin which you wish to install');
|
||||
@define('INSTALL_OFFSET_ON_SERVER_TIME', 'Base offset on server timezone?');
|
||||
@define('INSTALL_OFFSET_ON_SERVER_TIME_DESC', 'Offset entry times on server timezone or not. Select yes to base offset on server timezone and no to offset on GMT.');
|
||||
@define('INSTALL_OFFSET', 'Server time Offset');
|
||||
@define('STICKY_POSTINGS', 'Sticky Postings');
|
||||
@define('INSTALL_FETCHLIMIT', 'Entries to display on frontpage');
|
||||
|
@ -350,7 +350,11 @@ if (defined('DATE_LOCALES')) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (function_exists('date_default_timezone_set')) {
|
||||
if(isset($serendipity['useServerOffset']) && $serendipity['useServerOffset']==false) {
|
||||
date_default_timezone_set('UTC');
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Fallback charset, if none is defined in the language files
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user