[Signs fixed]New timezone management for importer (now working as expected ;) )

Dynamic timezone-change preview =)

TODO: 
 - complete timezone mapping list!
 - check exporter timezone management
This commit is contained in:
2012-12-29 21:23:48 +00:00
parent fb426098d6
commit 128e627a80
4 changed files with 4 additions and 5 deletions

View File

@@ -241,7 +241,7 @@ class ICal {
$this_tz = new DateTimeZone($tz);
$tz_now = new DateTime("now", $this_tz);
$tz_offset = $this_tz->getOffset($tz_now);
$timestamp_utc = $timestamp + $tz_offset;
$timestamp_utc = $timestamp - $tz_offset;
} else {
$timestamp_utc = $timestamp;
}