Skip to content

Commit

Permalink
Fix typo in default date format string for view widget
Browse files Browse the repository at this point in the history
Fixes #320
  • Loading branch information
Jermolene committed Jan 3, 2014
1 parent 9d72570 commit b06e09a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/modules/widgets/view.js
Expand Up @@ -148,7 +148,7 @@ ViewWidget.prototype.getValueAsDoubleUrlEncoded = function() {
};

ViewWidget.prototype.getValueAsDate = function(format) {
format = format || "YYYY MM DD 0hh:0ss";
format = format || "YYYY MM DD 0hh:0mm";
var value = $tw.utils.parseDate(this.getValue());
if(value && $tw.utils.isDate(value) && value.toString() !== "Invalid Date") {
return $tw.utils.formatDateString(value,format);
Expand Down

0 comments on commit b06e09a

Please sign in to comment.