repo.or.cz
/
ProtonMail-WebClient.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git]
/
packages
/
shared
/
lib
/
date-fns-utc
/
endOfDay.ts
blob
f11072e8aa30617a67b117c52d1faba45fe946e0
1
const endOfDay = (date: Date) => {
2
const result = new Date(+date);
3
result.setUTCHours(23, 59, 59, 999);
4
return result;
5
};
6
7
export default endOfDay;