@@ -14,7 +14,7 @@ import { UserStatus } from '../../utils/enums';
1414import ActiveCell from './ActiveCell' ;
1515import TimeDifference from './TimeDifference' ;
1616import { boxStyle } from '../../styles' ;
17- import { formatDateLocal , formatDateUtcYYYYMMDD } from '../../utils/formatDate' ;
17+ import { formatDate , formatDateLocal , formatDateUtcYYYYMMDD } from '../../utils/formatDate' ;
1818import hasPermission , { cantUpdateDevAdminDetails } from '../../utils/permissions' ;
1919import SetUpFinalDayButton from './SetUpFinalDayButton' ;
2020
@@ -41,8 +41,8 @@ const UserTableDataComponent = (props) => {
4141 jobTitle : props . user . jobTitle ,
4242 email : props . user . email ,
4343 weeklycommittedHours : props . user . weeklycommittedHours ,
44- startDate : formatDateUtcYYYYMMDD ( props . user . startDate ) || '' ,
45- endDate : formatDateUtcYYYYMMDD ( props . user . endDate ) || '' ,
44+ startDate : formatDate ( props . user . startDate ) || '' ,
45+ endDate : formatDate ( props . user . endDate ) || '' ,
4646 } ) ;
4747 const dispatch = useDispatch ( ) ;
4848 const history = useHistory ( ) ;
@@ -97,8 +97,8 @@ const UserTableDataComponent = (props) => {
9797 jobTitle : props . user . jobTitle ,
9898 email : props . user . email ,
9999 weeklycommittedHours : props . user . weeklycommittedHours ,
100- startDate : formatDateUtcYYYYMMDD ( props . user . startDate ) ,
101- endDate : formatDateUtcYYYYMMDD ( props . user . endDate ) ,
100+ startDate : formatDate ( props . user . startDate ) ,
101+ endDate : formatDate ( props . user . endDate ) ,
102102 } ) ;
103103 } , [ props . user ] ) ;
104104
@@ -543,13 +543,13 @@ const UserTableDataComponent = (props) => {
543543 < td className = "email_cell" >
544544 { editUser ?. endDate ? (
545545 < div >
546- { props . user . endDate ? formatDateLocal ( props . user . endDate ) : 'N/A' }
546+ { props . user . endDate ? formatDate ( props . user . endDate ) : 'N/A' }
547547 < FontAwesomeIcon
548548 className = "copy_icon"
549549 icon = { faCopy }
550550 onClick = { ( ) => {
551551 navigator . clipboard . writeText (
552- props . user . endDate ? formatDateLocal ( formData . endDate ) : 'N/A' ,
552+ props . user . endDate ? formatDate ( formData . endDate ) : 'N/A' ,
553553 ) ;
554554 toast . success ( 'End Date Copied!' ) ;
555555 } }
0 commit comments