@crastycrap That's what I can think of.
use Carbon\Carbon;
$userTimezone = 'Europe/Berlin';
$createdAt = Carbon::parse($instance->created_at)->setTimezone($userTimezone);
echo $createdAt;
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
how to display created_at of instance in user local time i mean the date by default saved in UTC time zone i want if someone at EST timezone or any other time zone to display date in his time not utc time
i add the timezone in input like the following
<input type="text" vaue=value="{{ $story->created_at }} UTC">
and convert it by JS
Please or to participate in this conversation.