File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 6868 cache-to : type=local,dest=/tmp/.buildx-cache
6969
7070 - name : Run CVE checks
71- uses : aquasecurity/trivy-action@18f2510ee396bbf400402947b394f2dd8c87dbb0 # infered from @v0.29 .0
71+ uses : aquasecurity/trivy-action@dc5a429b52fcf669ce959baa2c2dd26090d2a6c4 # infered from @v0.32 .0
7272 with :
7373 image-ref : " ghcr.io/kafbat/kafka-ui:latest"
7474 format : " table"
Original file line number Diff line number Diff line change @@ -7,9 +7,16 @@ interface Timezone {
77 UTCOffset : string ;
88}
99
10+ const UTCPlain : Timezone = {
11+ value : 'UTC' ,
12+ label : 'Plain UTC' ,
13+ offset : 'UTC+00:00' ,
14+ UTCOffset : 'UTC+00:00' ,
15+ } ;
16+
1017const generateTimezones = ( ) : Timezone [ ] => {
1118 try {
12- return Intl . supportedValuesOf ( 'timeZone' ) . map ( ( timeZone ) => {
19+ const timezones = Intl . supportedValuesOf ( 'timeZone' ) . map ( ( timeZone ) => {
1320 try {
1421 const offsetPart =
1522 new Intl . DateTimeFormat ( 'en' , {
@@ -59,12 +66,14 @@ const generateTimezones = (): Timezone[] => {
5966 } ;
6067 }
6168 } ) ;
69+ timezones . push ( UTCPlain ) ;
70+ return timezones ;
6271 } catch ( error ) {
6372 // eslint-disable-next-line no-console
6473 console . warn (
6574 'Intl.supportedValuesOf not supported, using fallback timezones'
6675 ) ;
67- return [
76+ const timezones = [
6877 {
6978 value : 'UTC' ,
7079 label : 'UTC' ,
@@ -90,6 +99,8 @@ const generateTimezones = (): Timezone[] => {
9099 UTCOffset : 'GMT+09:00' ,
91100 } ,
92101 ] ;
102+ timezones . push ( UTCPlain ) ;
103+ return timezones ;
93104 }
94105} ;
95106
You can’t perform that action at this time.
0 commit comments