|
UTC time is %s '), date_i18n( $time_format, false, 'gmt')); ?>
%2$s'), $current_offset_name, date_i18n($time_format)); ?>
|
|
UTC time is %s '), date_i18n($timezone_format, false, 'gmt')); ?>
%1$s'), date_i18n($timezone_format)); ?>
$right_now ) {
$found = true;
break;
}
}
if ( $found ) {
echo ' ';
$message = $tr['isdst'] ?
__('Daylight saving time begins on: %s .') :
__('Standard time begins on: %s .');
// Add the difference between the current offset and the new offset to ts to get the correct transition time from date_i18n().
printf( $message, date_i18n(get_option('date_format') . ' ' . get_option('time_format'), $tr['ts'] + ($tz_offset - $tr['offset']) ) );
} else {
_e('This timezone does not observe daylight saving time.');
}
}
// Set back to UTC.
date_default_timezone_set('UTC');
?>
|