Skip to content

Commit 3ec0ccc

Browse files
fix: [M3-10394] - Use human readable date/time for maintenance window (linode#12605)
* fix: [M3-10394] - Use human readable date/time for maintenance window * Add changeset * Remove humanizeCutOff --------- Co-authored-by: Jaalah Ramos <[email protected]>
1 parent 9983af1 commit 3ec0ccc

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@linode/manager": Fixed
3+
---
4+
5+
Use human readable date/time for Linode maintenance window ([#12605](https://github.com/linode/manager/pull/12605))

packages/manager/src/features/Linodes/LinodeMaintenanceText.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import React from 'react';
22

3+
import { DateTimeDisplay } from 'src/components/DateTimeDisplay/DateTimeDisplay';
4+
35
interface LinodeMaintenanceTextProps {
46
isOpened?: boolean;
57
maintenanceStartTime: string;
@@ -12,7 +14,12 @@ export const LinodeMaintenanceText = ({
1214
return (
1315
<>
1416
This Linode&rsquo;s maintenance window {isOpened ? 'opened' : 'opens'} at{' '}
15-
{maintenanceStartTime}
17+
<DateTimeDisplay
18+
sx={(theme) => ({
19+
color: theme.tokens.alias.Content.Text.Secondary.Default,
20+
})}
21+
value={maintenanceStartTime}
22+
/>
1623
{!isOpened && <>. For more information, see your open support tickets</>}.
1724
</>
1825
);

0 commit comments

Comments
 (0)