File tree 5 files changed +13
-12
lines changed
platform/features/conductor-v2/conductor/src/ui
5 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ define([
33
33
"extensions" : {
34
34
"formats" : [
35
35
{
36
- "key" : "local" ,
36
+ "key" : "local-format " ,
37
37
"implementation" : LocalTimeFormat
38
38
}
39
39
] ,
Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ define([
26
26
moment
27
27
) {
28
28
29
- var DATE_FORMAT = "YYYY-MM-DD hh :mm:ss.SSS" ,
29
+ var DATE_FORMAT = "YYYY-MM-DD h :mm:ss.SSS a " ,
30
30
DATE_FORMATS = [
31
31
DATE_FORMAT ,
32
- "YYYY-MM-DD hh :mm:ss" ,
33
- "YYYY-MM-DD hh :mm" ,
32
+ "YYYY-MM-DD h :mm:ss a " ,
33
+ "YYYY-MM-DD h :mm a " ,
34
34
"YYYY-MM-DD"
35
35
] ;
36
36
@@ -67,8 +67,8 @@ define([
67
67
return [
68
68
[ ".SSS" , function ( m ) { return m . milliseconds ( ) ; } ] ,
69
69
[ ":ss" , function ( m ) { return m . seconds ( ) ; } ] ,
70
- [ "hh:mm " , function ( m ) { return m . minutes ( ) ; } ] ,
71
- [ "hh " , function ( m ) { return m . hours ( ) ; } ] ,
70
+ [ "hh:mma " , function ( m ) { return m . minutes ( ) ; } ] ,
71
+ [ "hha " , function ( m ) { return m . hours ( ) ; } ] ,
72
72
[ "ddd DD" , function ( m ) {
73
73
return m . days ( ) &&
74
74
m . date ( ) != 1 ;
Original file line number Diff line number Diff line change @@ -42,11 +42,11 @@ define([
42
42
*/
43
43
this . metadata = {
44
44
'key' : 'local' ,
45
- 'name' : 'Local 12 hour ' ,
45
+ 'name' : 'Local' ,
46
46
'glyph' : '\u0043'
47
47
} ;
48
48
49
- this . _formats = [ 'utc ' ] ;
49
+ this . _formats = [ 'local-format ' ] ;
50
50
this . _tickSources = [ new LocalClock ( $timeout , DEFAULT_PERIOD ) ] ;
51
51
}
52
52
Original file line number Diff line number Diff line change @@ -105,8 +105,6 @@ define([
105
105
'./platform/search/bundle' ,
106
106
'./platform/status/bundle' ,
107
107
'./platform/commonUI/regions/bundle'
108
- //'./examples/localTimeSystem/bundle'
109
- //'./example/msl/bundle'
110
108
] , function ( Main , legacyRegistry ) {
111
109
return {
112
110
legacyRegistry : legacyRegistry ,
Original file line number Diff line number Diff line change @@ -212,10 +212,12 @@ define(
212
212
this . $scope . timeSystemModel . options = this . selectedMode . timeSystems ( ) . map ( function ( timeSystem ) {
213
213
return timeSystem . metadata ;
214
214
} ) ;
215
- this . $scope . timeSystemModel . selected = timeSystem ;
215
+
216
+ this . setTimeSystem ( timeSystem ) ;
217
+ /*this.$scope.timeSystemModel.selected = timeSystem;
216
218
//Use default format
217
219
this.$scope.timeSystemModel.format = timeSystem.formats()[0];
218
- this . setDeltasFromTimeSystem ( timeSystem ) ;
220
+ this.setDeltasFromTimeSystem(timeSystem); */
219
221
}
220
222
} ;
221
223
@@ -260,6 +262,7 @@ define(
260
262
TimeConductorController . prototype . setTimeSystem = function ( newTimeSystem ) {
261
263
if ( newTimeSystem && newTimeSystem !== this . $scope . timeSystemModel . selected ) {
262
264
this . $scope . timeSystemModel . selected = newTimeSystem ;
265
+ this . $scope . timeSystemModel . format = newTimeSystem . formats ( ) [ 0 ] ;
263
266
var mode = this . selectedMode ;
264
267
mode . selectedTimeSystem ( newTimeSystem ) ;
265
268
this . setDeltasFromTimeSystem ( newTimeSystem ) ;
You can’t perform that action at this time.
0 commit comments