From 0ac09253094e0eb4c67e60632547c543b9c6d43b Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 30 Mar 2011 12:50:56 -0700 Subject: [PATCH] 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. --- plugins/Event/Happening.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/Event/Happening.php b/plugins/Event/Happening.php index 376f27c698..45398dfcf2 100644 --- a/plugins/Event/Happening.php +++ b/plugins/Event/Happening.php @@ -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 '%s '. ''), 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)); -- 2.39.5