$component = dav_get_eventComponent($vevent);
if ($row["adjust"]) {
- $start = Temporal::convert($row["start"], date_default_timezone_get());
- $finish = Temporal::convert($row["finish"], date_default_timezone_get());
+ $start = Temporal::local($row["start"]);
+ $finish = Temporal::local($row["finish"]);
} else {
$start = $row["start"];
$finish = $row["finish"];
private function jqcal2wdcal($row, $calendar, $base_path)
{
if ($row["adjust"]) {
- $start = Temporal::convert($row["start"], date_default_timezone_get());
- $finish = Temporal::convert($row["finish"], date_default_timezone_get());
+ $start = Temporal::local($row["start"]);
+ $finish = Temporal::local($row["finish"]);
} else {
$start = $row["start"];
$finish = $row["finish"];
function membersince_display(&$a, &$b)
{
// Works in Vier
- $b = preg_replace('/<\/dl>/', "</dl>\n\n\n<dl id=\"aprofile-membersince\" class=\"aprofile\">\n<dt>" . L10n::t('Member since:') . "</dt>\n<dd>" . Temporal::convert($a->profile['register_date'], date_default_timezone_get()) . "</dd>\n</dl>", $b, 1);
+ $b = preg_replace('/<\/dl>/', "</dl>\n\n\n<dl id=\"aprofile-membersince\" class=\"aprofile\">\n<dt>" . L10n::t('Member since:') . "</dt>\n<dd>" . Temporal::local($a->profile['register_date']) . "</dd>\n</dl>", $b, 1);
// Trying for Frio
- //$b = preg_replace('/<\/div>/', "<div id=\"aprofile-membersince\" class=\"aprofile\"><hr class=\"profile-separator\"><div class=\"profile-label-name\">" . L10n::t('Member since:') . "</div><div class=\"profile-entry\">" . Temporal::convert($a->profile['register_date'], date_default_timezone_get()) . "</div></div>", $b, 1);
+ //$b = preg_replace('/<\/div>/', "<div id=\"aprofile-membersince\" class=\"aprofile\"><hr class=\"profile-separator\"><div class=\"profile-label-name\">" . L10n::t('Member since:') . "</div><div class=\"profile-entry\">" . Temporal::local($a->profile['register_date']) . "</div></div>", $b, 1);
}