File tree 2 files changed +19
-7
lines changed
src/app/utils/view-control/view-date
2 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 74
74
"maximumError" : " 40mb"
75
75
}
76
76
]
77
+ },
78
+ "development" : {
79
+ "optimization" : false ,
80
+ "sourceMap" : true
77
81
}
78
- }
82
+ },
83
+ "defaultConfiguration" : " development"
79
84
},
80
85
"serve" : {
81
86
"builder" : " @angular-devkit/build-angular:dev-server" ,
87
92
"configurations" : {
88
93
"production" : {
89
94
"browserTarget" : " odp-ui-appcenter:build:production"
95
+ },
96
+ "development" : {
97
+ "browserTarget" : " odp-ui-appcenter:build:development"
90
98
}
91
99
}
92
100
},
Original file line number Diff line number Diff line change @@ -24,18 +24,22 @@ export class ViewDateComponent implements OnInit {
24
24
this . dateString = this . appService . getUTCString ( this . value . rawData , this . value . tzInfo )
25
25
this . timezone = this . value . tzInfo ;
26
26
}
27
- if ( this . definition . value && this . definition . value . rawData ) {
27
+ else if ( this . definition . value && this . definition . value . rawData ) {
28
28
this . dateString = this . appService . getUTCString ( this . definition . value . rawData , this . definition . value . tzInfo )
29
29
this . timezone = this . definition . value . tzInfo ;
30
30
}
31
- if ( this . value && this . definition . type === 'Date' ) {
32
- this . dateString = this . appService . getUTCString ( this . value , this . definition ?. properties ?. defaultTimezone )
33
- this . timezone = this . definition ?. properties ?. defaultTimezone ;
34
- }
35
- if ( this . definition . value && this . definition . type === 'Date' ) {
31
+ // if (this.value && this.definition.type === 'Date') {
32
+ // this.dateString = this.appService.getUTCString(this.value, this.definition?.properties?.defaultTimezone)
33
+ // this.timezone = this.definition?.properties?.defaultTimezone;
34
+ // }
35
+ else if ( this . definition . value && this . definition . type === 'Date' ) {
36
36
this . dateString = this . appService . getUTCString ( this . definition . value , this . definition ?. properties ?. defaultTimezone )
37
37
this . timezone = this . definition ?. properties ?. defaultTimezone ;
38
38
}
39
+ else if ( ! this . definition . value ) {
40
+ this . dateString = null
41
+ this . timezone = null
42
+ }
39
43
}
40
44
41
45
You can’t perform that action at this time.
0 commit comments