Skip to content

Commit

Permalink
Bug: Fixed IST (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
subhadeeproy3902 authored May 15, 2024
1 parent 26672c9 commit b308e43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/[username]/RecentActivity.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ const RecentActivity = ({ activity }) => {
{activity.map((event, i) => {
return (
<div key={i} className="box overflow-hidden text-left hover:scale-100">
<p className="text-sm text-gray-400">{new Date(event.timestamp).toLocaleString()}</p>
<p className="text-sm text-gray-400">{new Date(event.timestamp).toLocaleString('en-US', {
timeZone: 'Asia/Kolkata',
})}</p>

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

0 comments on commit b308e43

Please sign in to comment.