Skip to content

Commit

Permalink
Merge pull request #1 from WingedToaster/WingedToaster-datetime-patch-1
Browse files Browse the repository at this point in the history
Change default formatString for Types.Datetime
  • Loading branch information
WingedToaster committed Apr 28, 2015
2 parents 3dcf000 + 5fa6c0f commit 365c1a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fields/types/datetime/DatetimeType.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function datetime(list, path, options) {
this._properties = ['formatString'];

this.typeDescription = 'date and time';
this.formatString = (options.format === false) ? false : (options.format || 'Do MMM YYYY');
this.formatString = (options.format === false) ? false : (options.format || 'YYYY-MM-DD h:m:s a');

if (this.formatString && 'string' !== typeof this.formatString) {
throw new Error('FieldType.DateTime: options.format must be a string.');
Expand Down

0 comments on commit 365c1a4

Please sign in to comment.