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.
This commit is contained in:
parent
da7c54023d
commit
0ac0925309
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user