Commit 0ac09253 authored by Brion Vibber's avatar Brion Vibber

Fix timestamps in fallback content for EventPlugin

A bunch of the common_* functions for date formatting expect an interpretable string, rather than a Unix timestamp, as input. Switched to using the DB-formatted timestamps as we put them into the object rather than the unix timestamp intermediate value when formatting the plaintext and HTML fallback content.
parent da7c5402
......@@ -156,8 +156,8 @@ class Happening extends Managed_DataObject
$content = sprintf(_('"%s" %s - %s (%s): %s'),
$title,
common_exact_date($start_time),
common_exact_date($end_time),
common_exact_date($ev->start_time),
common_exact_date($ev->end_time),
$location,
$description);
......@@ -169,10 +169,10 @@ class Happening extends Managed_DataObject
'<span class="description">%s</span> '.
'</span>'),
htmlspecialchars($title),
htmlspecialchars(common_date_iso8601($start_time)),
htmlspecialchars(common_exact_date($start_time)),
htmlspecialchars(common_date_iso8601($end_time)),
htmlspecialchars(common_exact_date($end_time)),
htmlspecialchars(common_date_iso8601($ev->start_time)),
htmlspecialchars(common_exact_date($ev->start_time)),
htmlspecialchars(common_date_iso8601($ev->end_time)),
htmlspecialchars(common_exact_date($ev->end_time)),
htmlspecialchars($location),
htmlspecialchars($description));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment