@@ -36,43 +36,28 @@ export const DateTime = ({
36
36
37
37
const tooltipContent = (
38
38
< div className = "flex flex-col gap-1" >
39
- { ! timeZone || timeZone === "UTC" ? (
40
- < div className = "flex flex-col gap-3 pb-1" >
41
- < DateTimeTooltipContent
42
- title = "UTC"
43
- dateTime = { formatDateTime ( realDate , "UTC" , locales , true , true ) }
44
- isoDateTime = { formatDateTimeISO ( realDate , "UTC" ) }
45
- icon = { < GlobeAltIcon className = "size-4 text-blue-500" /> }
46
- />
47
- < DateTimeTooltipContent
48
- title = "Local"
49
- dateTime = { formatDateTime ( realDate , localTimeZone , locales , true , true ) }
50
- isoDateTime = { formatDateTimeISO ( realDate , localTimeZone ) }
51
- icon = { < Laptop className = "size-4 text-green-500" /> }
52
- />
53
- </ div >
54
- ) : (
55
- < div className = "flex flex-col gap-3 pb-1" >
39
+ < div className = "flex flex-col gap-2.5 pb-1" >
40
+ { timeZone && timeZone !== "UTC" && (
56
41
< DateTimeTooltipContent
57
42
title = { timeZone }
58
43
dateTime = { formatDateTime ( realDate , timeZone , locales , true , true ) }
59
44
isoDateTime = { formatDateTimeISO ( realDate , timeZone ) }
60
45
icon = { < GlobeAmericasIcon className = "size-4 text-purple-500" /> }
61
46
/>
62
- < DateTimeTooltipContent
63
- title = "UTC"
64
- dateTime = { formatDateTime ( realDate , "UTC" , locales , true , true ) }
65
- isoDateTime = { formatDateTimeISO ( realDate , "UTC" ) }
66
- icon = { < GlobeAltIcon className = "size-4 text-blue-500" /> }
67
- />
68
- < DateTimeTooltipContent
69
- title = "Local"
70
- dateTime = { formatDateTime ( realDate , localTimeZone , locales , true , true ) }
71
- isoDateTime = { formatDateTimeISO ( realDate , localTimeZone ) }
72
- icon = { < Laptop className = "size-4 text-green-500" /> }
73
- />
74
- </ div >
75
- ) }
47
+ ) }
48
+ < DateTimeTooltipContent
49
+ title = "UTC"
50
+ dateTime = { formatDateTime ( realDate , "UTC" , locales , true , true ) }
51
+ isoDateTime = { formatDateTimeISO ( realDate , "UTC" ) }
52
+ icon = { < GlobeAltIcon className = "size-4 text-blue-500" /> }
53
+ />
54
+ < DateTimeTooltipContent
55
+ title = "Local"
56
+ dateTime = { formatDateTime ( realDate , localTimeZone , locales , true , true ) }
57
+ isoDateTime = { formatDateTimeISO ( realDate , localTimeZone ) }
58
+ icon = { < Laptop className = "size-4 text-green-500" /> }
59
+ / >
60
+ </ div >
76
61
</ div >
77
62
) ;
78
63
0 commit comments