Skip to content

Commit

Permalink
time field
Browse files Browse the repository at this point in the history
  • Loading branch information
hinanaya committed Jun 26, 2024
1 parent 93c1cab commit 78582ab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 1 addition & 2 deletions ui/fields/date.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { html, render } from '../vendor.js'
import OBFieldDatetime from './datetime.js';

class OBFieldDate extends OBFieldDatetime {
valueFormat = "YYYY-MM-DD";
valueStringFormat = "MMM D, YYYY";
}

customElements.define('ob-field-date', OBFieldDate);
customElements.define('ob-field-date', OBFieldDate);
8 changes: 8 additions & 0 deletions ui/fields/time.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import OBFieldDatetime from './datetime.js';

class OBFieldTime extends OBFieldDatetime {
valueFormat = "HH:mm:ss";
valueStringFormat = "h:mm A";
}

customElements.define('ob-field-time', OBFieldTime);

0 comments on commit 78582ab

Please sign in to comment.