Timezones in activity stream
A website submitted by Nils on 01 December 2009
Closed#30: Timezones in activity stream
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.
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).