File tree Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -2905,13 +2905,12 @@ const EasyCoder_Core = {
2905
2905
content : ``
2906
2906
} ;
2907
2907
case `now` :
2908
- function isDST ( d ) {
2909
- let jan = new Date ( d . getFullYear ( ) , 0 , 1 ) . getTimezoneOffset ( ) ;
2910
- let jul = new Date ( d . getFullYear ( ) , 6 , 1 ) . getTimezoneOffset ( ) ;
2911
- return Math . max ( jan , jul ) !== d . getTimezoneOffset ( ) ;
2912
- }
2913
- let now = Math . floor ( Date . now ( ) / 1000 )
2914
- if ( isDST ( now ) ) {
2908
+ const d = Date ( ) ;
2909
+ const jan = new Date ( d . getFullYear ( ) , 0 , 1 ) . getTimezoneOffset ( ) ;
2910
+ const jul = new Date ( d . getFullYear ( ) , 6 , 1 ) . getTimezoneOffset ( ) ;
2911
+ const isDST = Math . max ( jan , jul ) !== d . getTimezoneOffset ( ) ;
2912
+ let now = Math . floor ( Date . now ( ) / 1000 )
2913
+ if ( isDST ) {
2915
2914
now += 3600
2916
2915
}
2917
2916
return {
Original file line number Diff line number Diff line change @@ -2905,13 +2905,12 @@ const EasyCoder_Core = {
2905
2905
content : ``
2906
2906
} ;
2907
2907
case `now` :
2908
- function isDST ( d ) {
2909
- let jan = new Date ( d . getFullYear ( ) , 0 , 1 ) . getTimezoneOffset ( ) ;
2910
- let jul = new Date ( d . getFullYear ( ) , 6 , 1 ) . getTimezoneOffset ( ) ;
2911
- return Math . max ( jan , jul ) !== d . getTimezoneOffset ( ) ;
2912
- }
2913
- let now = Math . floor ( Date . now ( ) / 1000 )
2914
- if ( isDST ( now ) ) {
2908
+ const d = Date ( ) ;
2909
+ const jan = new Date ( d . getFullYear ( ) , 0 , 1 ) . getTimezoneOffset ( ) ;
2910
+ const jul = new Date ( d . getFullYear ( ) , 6 , 1 ) . getTimezoneOffset ( ) ;
2911
+ const isDST = Math . max ( jan , jul ) !== d . getTimezoneOffset ( ) ;
2912
+ let now = Math . floor ( Date . now ( ) / 1000 )
2913
+ if ( isDST ) {
2915
2914
now += 3600
2916
2915
}
2917
2916
return {
You can’t perform that action at this time.
0 commit comments