[CLOCK] Issue #1273 : Allow clock to set timezone with autocomplete dropdown option.

This commit is contained in:
Dhrubomoy Das Gupta
2017-05-28 20:21:52 -04:00
parent 1bdc0497c7
commit 893e24ff98
11 changed files with 340 additions and 30 deletions

View File

@@ -21,6 +21,7 @@
*****************************************************************************/
define([
"moment-timezone",
"./src/indicators/ClockIndicator",
"./src/services/TickerService",
"./src/controllers/ClockController",
@@ -32,6 +33,7 @@ define([
"text!./res/templates/timer.html",
'legacyRegistry'
], function (
MomentTimezone,
ClockIndicator,
TickerService,
ClockController,
@@ -200,13 +202,20 @@ define([
"cssClass": "l-inline"
}
]
},
{
"key": "timezone",
"name": "Timezone",
"control": "autocomplete",
"options": MomentTimezone.tz.names()
}
],
"model": {
"clockFormat": [
"YYYY/MM/DD hh:mm:ss",
"clock12"
]
],
"timezone": "UTC"
}
},
{