diff options
author | Friendika <info@friendika.com> | 2011-09-03 07:40:05 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-09-03 07:40:05 -0700 |
commit | c0a2cc3e98868b3b10472dee00a4590bb11f45c1 (patch) | |
tree | 978863a3809bc70a88eb434e8f4e1776df25a474 | |
parent | 59a6a04e26bf6baec4b7ad62419e9d335db249df (diff) | |
download | volse-hubzilla-c0a2cc3e98868b3b10472dee00a4590bb11f45c1.tar.gz volse-hubzilla-c0a2cc3e98868b3b10472dee00a4590bb11f45c1.tar.bz2 volse-hubzilla-c0a2cc3e98868b3b10472dee00a4590bb11f45c1.zip |
diaspora has no timezone - use UTC for events
-rw-r--r-- | include/bb2diaspora.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php index c779b6aaf..65ccc750f 100644 --- a/include/bb2diaspora.php +++ b/include/bb2diaspora.php @@ -201,7 +201,7 @@ function format_event_diaspora($ev) { $o .= '**' . bb2diaspora($ev['desc']) . '**' . "\n"; $o .= t('Starts:') . ' ' - . (($ev['adjust']) ? day_translate(datetime_convert('UTC', date_default_timezone_get(), + . (($ev['adjust']) ? day_translate(datetime_convert('UTC', 'UTC', $ev['start'] , $bd_format )) : day_translate(datetime_convert('UTC', 'UTC', $ev['start'] , $bd_format))) @@ -209,7 +209,7 @@ function format_event_diaspora($ev) { if(! $ev['nofinish']) $o .= t('Finishes:') . ' ' - . (($ev['adjust']) ? day_translate(datetime_convert('UTC', date_default_timezone_get(), + . (($ev['adjust']) ? day_translate(datetime_convert('UTC', 'UTC', $ev['finish'] , $bd_format )) : day_translate(datetime_convert('UTC', 'UTC', $ev['finish'] , $bd_format ))) |