Add moment_locale and check for valid date data

Adds a check for the global moment_locale variable, as this may need to be different than the main app locale (en-au vs en for example), so that moment picks up the correct localised date formats.

Also adds a check to make sure that the data exists in the timestamp column before applying the date format.