Closed#30: Timezones in activity stream

The activity stream doesn’t seem to care about timezones. It says yesterday for activities that happened half an hour ago (it’s 15:25 here in Germany, so I suppose that it is 0:25 Australian time - which explains the today/yesterday confusion).

I am getting this same behavior on ‘last active’ values in the forum as well.

Should be fixed now. It was a 2 part problem. Firstly, the activity stream was using the entry creation_date, which is stored automatically by Symphony in the sym_entries table. This value does not include the timezone offset in the string. To fix the problem I instead used creation_date_gmt and appended +00:00 to the end. This way, when the date object formats the string, the correct user timezone preference is applied.

The second problem, where everything appears as ‘Yesterday’, was fixed by changing Symphony’s params for time and date. It was always set to a +10:00 time. This was fixed by allowing the Members extension to apply the timezone change before these params were created.

This issue is closed.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details