@@ -6,6 +6,7 @@ import { shallowEqual, useDispatch, useSelector } from "react-redux";
6
6
import { Link , useNavigate , useParams } from "react-router-dom" ;
7
7
import { useSwitchChain } from "wagmi" ;
8
8
import { useAlloVersion } from "common/src/components/AlloVersionSwitcher" ;
9
+ import { getTimezoneName } from "common/src/index" ;
9
10
import { AlloVersion } from "data-layer/dist/data-layer.types" ;
10
11
import { loadAllChainsProjects } from "../../actions/projects" ;
11
12
import { loadRound , unloadRounds } from "../../actions/rounds" ;
@@ -17,7 +18,7 @@ import { ApplicationModalStatus } from "../../reducers/roundApplication";
17
18
import { Status } from "../../reducers/rounds" ;
18
19
import { grantsPath , newGrantPath , roundApplicationPath } from "../../routes" ;
19
20
import { Round } from "../../types" ;
20
- import { formatTimeUTC , isInfinite } from "../../utils/components" ;
21
+ import { formatTimeLocal , isInfinite } from "../../utils/components" ;
21
22
import Button , { ButtonVariants } from "../base/Button" ;
22
23
import ErrorModal from "../base/ErrorModal" ;
23
24
import LoadingSpinner from "../base/LoadingSpinner" ;
@@ -81,7 +82,9 @@ function ApplyButton(props: ApplyButtonProps) {
81
82
</ Button >
82
83
< div className = "text-center flex flex-1 flex-col mt-6 text-secondary-text" >
83
84
< span > The application period for this round will start on</ span >
84
- < span > { formatTimeUTC ( round . applicationsStartTime ) } </ span >
85
+ < span >
86
+ { formatTimeLocal ( round . applicationsStartTime ) } { getTimezoneName ( ) }
87
+ </ span >
85
88
</ div >
86
89
</ >
87
90
) ;
@@ -194,29 +197,32 @@ function ShowRound() {
194
197
const renderApplicationDate = ( ) =>
195
198
roundData && (
196
199
< >
197
- { formatTimeUTC ( roundData . applicationsStartTime ) } -{ " " }
200
+ { formatTimeLocal ( roundData . applicationsStartTime ) } { getTimezoneName ( ) } -{ " " }
198
201
{ isInfinite ( roundData . applicationsEndTime ) ||
199
202
! roundData . applicationsEndTime
200
203
? "No End Date"
201
- : formatTimeUTC ( roundData . applicationsEndTime ) }
204
+ : formatTimeLocal ( roundData . applicationsEndTime ) } { " " }
205
+ { getTimezoneName ( ) }
202
206
</ >
203
207
) ;
204
208
205
209
const renderRoundDate = ( ) =>
206
210
roundData &&
207
211
( props . isDirectRound ? (
208
212
< >
209
- { formatTimeUTC ( props . roundStartTime as number ) } -{ " " }
213
+ { formatTimeLocal ( props . roundStartTime as number ) } { getTimezoneName ( ) } -{ " " }
210
214
{ isInfinite ( props . roundEndTime as number ) || ! props . roundEndTime
211
215
? "No End Date"
212
- : formatTimeUTC ( props . roundEndTime ) }
216
+ : formatTimeLocal ( props . roundEndTime ) } { " " }
217
+ { getTimezoneName ( ) }
213
218
</ >
214
219
) : (
215
220
< >
216
- { formatTimeUTC ( Number ( props . roundStartTime ) ) } -{ " " }
221
+ { formatTimeLocal ( Number ( props . roundStartTime ) ) } { getTimezoneName ( ) } -{ " " }
217
222
{ isInfinite ( Number ( props . roundEndTime ) ) || ! props . roundEndTime
218
223
? "No End Date"
219
- : formatTimeUTC ( props . roundEndTime ) }
224
+ : formatTimeLocal ( props . roundEndTime ) } { " " }
225
+ { getTimezoneName ( ) }
220
226
</ >
221
227
) ) ;
222
228
0 commit comments