Skip to content

Commit 9621a01

Browse files
trying for server
1 parent 4a48fd4 commit 9621a01

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/pdf/pdf-parts/drawHeaderAndSignatureBoxes.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,8 @@ function calculateStatsRows(data, tableColorRange) {
221221
* Format a Date as "YYYY-MM-DD HH:mm"
222222
*/
223223
function formatDateForRange(date) {
224-
const dateToDisplay = moment(date).tz('Asia/Tokyo').toDate();
225-
const yyyy = dateToDisplay.getFullYear();
226-
const MM = String(dateToDisplay.getMonth() + 1).padStart(2, '0');
227-
const dd = String(dateToDisplay.getDate()).padStart(2, '0');
228-
const hh = String(dateToDisplay.getHours()).padStart(2, '0');
229-
const mm = String(dateToDisplay.getMinutes()).padStart(2, '0');
230-
return `${yyyy}-${MM}-${dd} ${hh}:${mm}`;
224+
const dateToDisplay = moment(date).tz('Asia/Tokyo').format('YYYY-MM-DD HH:mm').toString();
225+
return dateToDisplay;
231226
}
232227

233228
/**

0 commit comments

Comments
 (0)