FIX: allow localization in timestamp

Discussed [here](https://github.com/discourse/discourse/commit/0453da6fa5202d505c3362ee1cd75ae26f4000fe#commitcomment-7545883).

Continuation of [this commit](https://github.com/discourse/discourse/pull/2706).