Skip to content

Commit

Permalink
Small bug fix for date schema item
Browse files Browse the repository at this point in the history
  • Loading branch information
MKHenson committed Apr 28, 2016
1 parent 964cc39 commit a3fad5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/dist/src/models/schema-items/schema-date.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var SchemaDate = (function (_super) {
* @returns {number}
*/
SchemaDate.prototype.getValue = function (options) {
return (this.value !== undefined && this.value !== null ? this.value : null);
return (this.value !== undefined && this.value !== null ? this.value : Date.now());
};
return SchemaDate;
}(schema_item_1.SchemaItem));
Expand Down
2 changes: 1 addition & 1 deletion server/src/models/schema-items/schema-date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ export class SchemaDate extends SchemaItem<number>
*/
public getValue(options? : ISchemaOptions): number
{
return (this.value !== undefined && this.value !== null ? this.value : null );
return (this.value !== undefined && this.value !== null ? this.value : Date.now() );
}
}

0 comments on commit a3fad5a

Please sign in to comment.