I've installed for the second time Serendipity. It's a very cool blogging system.
My problem is with timezones plugin. I don't have Date PEAR package and I can't installing it. So I have choised to put this string for show the Date:
according to PHP Date format. But I can just see the same date in my page:London
GMT
H:i:s
Providence
EDT
H:i:s
I've tryed to modify serendipity_plugin_timezones.php fromLondon: 15:08:03
Providence: 15:08:03
Code: Select all
function generate_content(&$title) {
global $serendipity;
$title = $this->get_config('title');
if ($this->get_config('timeshift') == "" && @include_once 'Date.php') {
$date = new Date();
//create the first date
$date->convertTZbyID($this->get_config('zone1_name'));
$date1=$date->format($this->get_config('zone1_format'));
$date->convertTZbyID($this->get_config('zone2_name'));
$date2=$date->format($this->get_config('zone2_format'));
} else {
$date1=date($this->get_config('zone1_format'));
$date2=date($this->get_config('zone2_format'),time()+$this->get_config('timeshift'));
}
echo $this->get_config('zone1_text');
echo $date1;
echo '<br />';
echo $this->get_config('zone2_text');
echo $date2;
echo '</div>';
}
Code: Select all
function generate_content(&$title) {
global $serendipity;
$title = $this->get_config('title');
if ($this->get_config('timeshift') == "" && @include_once 'Date.php') {
$date = new Date();
//create the first date
$date->convertTZbyID($this->get_config('zone1_name'));
$date1=$date->format($this->get_config('zone1_format'));
$date->convertTZbyID($this->get_config('zone2_name'));
$date2=$date->format($this->get_config('zone2_format'));
} else {
date_default_timezone_set($this->get_config('zone1_name'));
$date1=date($this->get_config('zone1_format'));
date_default_timezone_set($this->get_config('zone2_name'));
$date2=date($this->get_config('zone2_format'));
}
echo $this->get_config('zone1_text');
echo $date1;
echo '<br />';
echo $this->get_config('zone2_text');
echo $date2;
echo '</div>';
}
thanks all