Is there a document that covers best practices for working with dates in templates with xenforo?
The date function doesn't seem to honor timezone, but date_time does?
With date, you can specify the traditional PHP format options, but date_time seems to have its own format? Does date_time always assume relative time or does it format a constant format like M j, Y g:i A.
Or should I be using <xf:date time="{$timestamp}" />?
What I'm looking for PHP's date format, but with the flexibility to specify what format the time should be output, but also honoring the end-user's timezone.
The date function doesn't seem to honor timezone, but date_time does?
With date, you can specify the traditional PHP format options, but date_time seems to have its own format? Does date_time always assume relative time or does it format a constant format like M j, Y g:i A.
Or should I be using <xf:date time="{$timestamp}" />?
What I'm looking for PHP's date format, but with the flexibility to specify what format the time should be output, but also honoring the end-user's timezone.
Last edited: