0

I have added a timepicker to my datepicker. Everything works, but when I posts, the time will degrees by 2 hours (I think it somthing in moment js).

Does someone know this problem and know how to fix it?

It shows the timezone

The datetime that I inserted was 2018-10-09 09:00 to 2018-10-09-12:00.

1 Answers1

1

Please check Application Timezone in your config/app file.

Example for me:

/*
|--------------------------------------------------------------------------
| Application Timezone
|--------------------------------------------------------------------------
|
| Here you may specify the default timezone for your application, which
| will be used by the PHP date and date-time functions. We have gone
| ahead and set this to a sensible default for you out of the box.
|
*/

'timezone' => 'Europe/Kiev',
Kenny Horna
  • 13,485
  • 4
  • 44
  • 71
Egretos
  • 1,155
  • 7
  • 23