Skip to content

Commit

Permalink
change date format
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischenlixing committed Jun 8, 2024
1 parent c0a93c4 commit b64ca78
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Reports/TotalReport/TotalPeopleReport.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ function TotalPeopleReport(props) {
<div className={`total-container ${darkMode ? 'bg-yinmn-blue text-light' : ''}`}>
<div className={`total-title ${darkMode ? 'text-azure' : ''}`}>Total People Report</div>
<div className="total-period">
In the period from {fromDate} to {toDate}:
In the period from {startDate.toLocaleDateString('en-US', { month: '2-digit', day: '2-digit', year: 'numeric' })} to {endDate.toLocaleDateString('en-US', { month: '2-digit', day: '2-digit', year: 'numeric' })}:
</div>
<div className="total-item">
<div className="total-number">{allPeople.length}</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Reports/TotalReport/TotalProjectReport.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ function TotalProjectReport(props) {
<div className={`total-container ${darkMode ? 'bg-yinmn-blue text-light' : ''}`}>
<div className={`total-title ${darkMode ? 'text-azure' : ''}`}>Total Project Report</div>
<div className="total-period">
In the period from {fromDate} to {toDate}:
In the period from {startDate.toLocaleDateString('en-US', { month: '2-digit', day: '2-digit', year: 'numeric' })} to {endDate.toLocaleDateString('en-US', { month: '2-digit', day: '2-digit', year: 'numeric' })}:
</div>
<div className="total-item">
<div className="total-number">{allProject.length}</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Reports/TotalReport/TotalTeamReport.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ function TotalTeamReport(props) {
<div className={`total-container ${darkMode ? 'bg-yinmn-blue text-light' : ''}`}>
<div className={`total-title ${darkMode ? 'text-azure' : ''}`}>Total Team Report</div>
<div className="total-period">
In the period from {fromDate} to {toDate}:
In the period from {startDate.toLocaleDateString('en-US', { month: '2-digit', day: '2-digit', year: 'numeric' })} to {endDate.toLocaleDateString('en-US', { month: '2-digit', day: '2-digit', year: 'numeric' })}:
</div>
<div className="total-item">
<div className="total-number">{totalTeam.length}</div>
Expand Down

0 comments on commit b64ca78

Please sign in to comment.