File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
portal-ui/src/screens/Console/Common/FormComponents/DaysSelector Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,10 @@ const calculateNewTime = (
33
33
hours : number ,
34
34
minutes : number ,
35
35
) => {
36
- return DateTime . fromJSDate ( initialDate ) . plus ( { days, hours, minutes } ) ;
36
+ return DateTime . fromJSDate ( initialDate ) . plus ( {
37
+ hours : hours + days * 24 ,
38
+ minutes,
39
+ } ) ; // Lump days into hours to avoid daylight savings causing issues
37
40
} ;
38
41
39
42
const DaysSelector = ( {
@@ -249,7 +252,7 @@ const DaysSelector = ({
249
252
< LinkIcon />
250
253
< div > { entity } will be available until:</ div > { " " }
251
254
< div className = { "validTill" } >
252
- { dateSelected . toFormat ( "MM/dd/yyyy HH:mm:ss" ) }
255
+ { dateSelected . toFormat ( "MM/dd/yyyy HH:mm:ss ZZZZ " ) }
253
256
</ div >
254
257
</ div >
255
258
) : (
You can’t perform that action at this time.
0 commit comments