If I understand you correctly, you want to have the
All times are GMT +2 hours. The time now is 04:39. to read as
All times are GMT +2 hours. The time now is 02:39 GMT., no matter which timezone the user has set.
But all other times should stay as they are.
Then try this:
In functions.php
FIND
PHP Code:
function fetch_time_data()
{
BELOW that ADD
PHP Code:
global $timenow_gmt, $datenow_gmt;
FIND
PHP Code:
$datenow = vbdate($vboptions['dateformat'], TIMENOW);
$timenow = vbdate($vboptions['timeformat'], TIMENOW);
BELOW that ADD
PHP Code:
$datenow_gmt = vbdate($vboptions['dateformat'], TIMENOW, false, true, false, true);
$timenow_gmt = vbdate($vboptions['timeformat'], TIMENOW, false, true, false, true);
FIND
PHP Code:
function init_language()
{
BELOW that ADD
PHP Code:
global $timenow_gmt, $datenow_gmt;
FIND
PHP Code:
$vbphrase['all_times_are_gmt_x_time_now_is_y'] = construct_phrase($vbphrase['all_times_are_gmt_x_time_now_is_y'], $tzoffset, $timenow, $datenow);
REPLACE that with
PHP Code:
$vbphrase['all_times_are_gmt_x_time_now_is_y'] = construct_phrase($vbphrase['all_times_are_gmt_x_time_now_is_y'], $tzoffset, $timenow_gmt, $datenow_gmt);
Alter phrase all_times_are_gmt_x_time_now_is_y to read
Quote:
All times are GMT{1}. The time now is <span class="time">{2} GMT</span>.
|