Skip to content

Instantly share code, notes, and snippets.

@sepiariver
Created September 30, 2014 23:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sepiariver/f22ea4a311feafccf1b3 to your computer and use it in GitHub Desktop.
Save sepiariver/f22ea4a311feafccf1b3 to your computer and use it in GitHub Desktop.
Custom Collections Timestamp Renderer
var timestampToDatetime = function(value, metaData, record, rowIndex, colIndex, store) {
if (value == 0 || value == null) return '';
return Ext.util.Format.date(new Date(parseInt(value) * 1000),MODx.config['collections.mgr_datetime_format']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment