Change Timezone on Server #932
-
Hello, How do I change timezone from UTC on the server I mean Laravel Herd? I am having this problem: $passDate = Carbon::createFromFormat('d/m/Y H:i:s', $request->get('passDateTime'));
or....
$passDate = $request->date('passDateTime', 'd/m/Y H:i:s'); I get |
Beta Was this translation helpful? Give feedback.
Answered by
johnngondi
Aug 15, 2024
Replies: 1 comment
-
I have realized all I needed to do is add $passDate = Carbon::createFromFormat('d/m/Y H:i:s', $request->get('passDateTime'), 'UTC');
or....
$passDate = $request->date('passDateTime', 'd/m/Y H:i:s', 'UTC'); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
johnngondi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have realized all I needed to do is add
UTC
as timezone.