mirror of
https://github.com/nasa/openmct.git
synced 2025-06-16 06:08:11 +00:00
Format updates when time system selected
This commit is contained in:
@ -33,7 +33,7 @@ define([
|
||||
"extensions": {
|
||||
"formats": [
|
||||
{
|
||||
"key": "local",
|
||||
"key": "local-format",
|
||||
"implementation": LocalTimeFormat
|
||||
}
|
||||
],
|
||||
|
@ -26,11 +26,11 @@ define([
|
||||
moment
|
||||
) {
|
||||
|
||||
var DATE_FORMAT = "YYYY-MM-DD hh:mm:ss.SSS",
|
||||
var DATE_FORMAT = "YYYY-MM-DD h:mm:ss.SSS a",
|
||||
DATE_FORMATS = [
|
||||
DATE_FORMAT,
|
||||
"YYYY-MM-DD hh:mm:ss",
|
||||
"YYYY-MM-DD hh:mm",
|
||||
"YYYY-MM-DD h:mm:ss a",
|
||||
"YYYY-MM-DD h:mm a",
|
||||
"YYYY-MM-DD"
|
||||
];
|
||||
|
||||
@ -67,8 +67,8 @@ define([
|
||||
return [
|
||||
[".SSS", function(m) { return m.milliseconds(); }],
|
||||
[":ss", function(m) { return m.seconds(); }],
|
||||
["hh:mm", function(m) { return m.minutes(); }],
|
||||
["hh", function(m) { return m.hours(); }],
|
||||
["hh:mma", function(m) { return m.minutes(); }],
|
||||
["hha", function(m) { return m.hours(); }],
|
||||
["ddd DD", function(m) {
|
||||
return m.days() &&
|
||||
m.date() != 1;
|
||||
|
@ -42,11 +42,11 @@ define([
|
||||
*/
|
||||
this.metadata = {
|
||||
'key': 'local',
|
||||
'name': 'Local 12 hour',
|
||||
'name': 'Local',
|
||||
'glyph': '\u0043'
|
||||
};
|
||||
|
||||
this._formats = ['utc'];
|
||||
this._formats = ['local-format'];
|
||||
this._tickSources = [new LocalClock($timeout, DEFAULT_PERIOD)];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user