File tree Expand file tree Collapse file tree 2 files changed +0
-22
lines changed Expand file tree Collapse file tree 2 files changed +0
-22
lines changed Original file line number Diff line number Diff line change 1
1
<svg xmlns =" http://www.w3.org/2000/svg" width =" 800" height =" {{ height }} " viewBox =" 0 0 800 {{ height }} " >
2
2
<style >
3
- .bracket {
4
- fill : red ;
5
- }
6
-
7
3
.key {
8
4
fill : #9cdcfe ;
9
5
}
Original file line number Diff line number Diff line change @@ -28,23 +28,6 @@ export class WidgetService {
28
28
} ) ;
29
29
}
30
30
31
- toIsoString ( date : Date ) {
32
- const tzo = - new Date ( new Date ( ) . toLocaleString ( "en-US" , { timeZone : process . env . DATETIME_TIMEZONE } ) ) . getTimezoneOffset ( ) ;
33
- const dif = tzo >= 0 ? '+' : '-' ;
34
- const pad = ( num : number ) => {
35
- return ( num < 10 ? '0' : '' ) + num ;
36
- } ;
37
-
38
- return date . getFullYear ( ) +
39
- '-' + pad ( date . getMonth ( ) + 1 ) +
40
- '-' + pad ( date . getDate ( ) ) +
41
- 'T' + pad ( date . getHours ( ) ) +
42
- ':' + pad ( date . getMinutes ( ) ) +
43
- ':' + pad ( date . getSeconds ( ) ) +
44
- dif + pad ( Math . floor ( Math . abs ( tzo ) / 60 ) ) +
45
- ':' + pad ( Math . abs ( tzo ) % 60 ) ;
46
- }
47
-
48
31
generate_indexes ( count : number ) {
49
32
const array = [ ] ;
50
33
for ( let index = 1 ; index <= count ; index ++ ) {
@@ -120,7 +103,6 @@ export class WidgetService {
120
103
time : this . getTime ( ) ,
121
104
tz : process . env . DATETIME_TIMEZONE ,
122
105
date : this . getDate ( ) ,
123
- iso : this . toIsoString ( new Date ( ) )
124
106
} ,
125
107
activity : activity && activity . activities . length !== 0 ? {
126
108
file : activity . activities [ 0 ] . file ?? 'Idling' ,
You can’t perform that action at this time.
0 commit comments