Skip to content

Commit

Permalink
초 떼기
Browse files Browse the repository at this point in the history
  • Loading branch information
overthestream committed Jan 27, 2024
1 parent 12f9f01 commit 5ac135b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/firebase/fcm.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,12 @@ export class FcmService {
return timezoneAcceptedData.map((notification) => {
return {
message: notification.body,
date: notification.createdAt.toISOString().split('T')[0],
date: notification.createdAt
.toISOString()
.split('T')[0]
.split(':')
.slice(0, 2)
.join(':'),
time: notification.createdAt.toLocaleTimeString('en-GB'),
};
});
Expand Down

0 comments on commit 5ac135b

Please sign in to comment.