Chat Message Timestamps

Customizing chat message timestamps on web


Web Version 1.8+ is required

Showing Timestamps

Chat messages do not show timestamps by default. Add the timestamps bare attribute to the chat element to enable them:

The timestamp formatter will respect the lang attribute if it is present, so timestamps will appear localized. The language will default to "en" if it is undefined.

Formatting Timestamps

The timestamp format can be changed by setting the timeFormat property on the chat node. The timeFormat value should be an object in the same format as the options to Date.toLocaleDateString.