Closed DylannCordel closed 7 years ago
I'm still not sure about time formatting, but maybe it's not so important since testing passed... Thanks for the quick fix :)
You're welcome
In pybb_user_time, format is forced (eg: dateformat.format(context_time, 'd M, Y H:i')
) and is not locale dependant as {{ datetime|date:DATE_FORMAT }}
is. So we should no have any failure caused by user's localization which could differ from server's one.
Yes, indeed, pybb_user_time
use dateformat.format
, but I think it was some kind of hardcode. Maybe in 2008 there was no localize
. Never mind.
related to https://github.com/hovel/pybbm/pull/262#issuecomment-278853942
Now, django is aware of timezone when running tests and whatever the server TZ is, datetime operations are now correct :)
Thanks @lampslave for pointing this.