Skip to content

Commit b308e43

Browse files
authoredMay 15, 2024··
Bug: Fixed IST (#35)
1 parent 26672c9 commit b308e43

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎app/[username]/RecentActivity.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ const RecentActivity = ({ activity }) => {
9595
{activity.map((event, i) => {
9696
return (
9797
<div key={i} className="box overflow-hidden text-left hover:scale-100">
98-
<p className="text-sm text-gray-400">{new Date(event.timestamp).toLocaleString()}</p>
98+
<p className="text-sm text-gray-400">{new Date(event.timestamp).toLocaleString('en-US', {
99+
timeZone: 'Asia/Kolkata',
100+
})}</p>
99101

100102
<div className="mt-2.5 font-medium text-gray-200 text-sm md:text-lg [&_a]:text-cyan-500 [&_a]:hover:underline">
101103
<Activity event={event} />

0 commit comments

Comments
 (0)
Please sign in to comment.