Problem With Date And Create Date 2

0

Hello, I need to know how to change the time zone in the application. What parameter should I use in app.php instead of UTC? I am having the following problem: when I create an entry, for example today, 27/12/2024, the date appears correctly, but both in the view of the entries and in the reports, it always shows the date of the previous day, for example, 27/12/2024. If I edit the entry, the date I entered is 12/27/2024. Can you help? The time zone of the VPS is fine according to my time zone, which is GMT -3 America/Sao_Paulo. Thank you.

This problem is the same?

https://tecdiary.net/support/question/problem-with-date-and-create-date

Question Resolved For: Warehouse Inventory Management Solution 0 Votes 13 Answers 238 Views
Asked by Lucas Andrade 2 months ago

0

Answered by Nishad 2 months ago

Hello, I think your php.ini timezone and config/app.php timezone are different. also check mysql timezone.

0

Answered by Mian Saleem 2 months ago

Hello,

Please make sure that you have set correct timezone for the server and in config/app.php

Thank you

1

Answered by Mian Saleem 2 months ago

Nishad Thank you for helping 😃

0

Answered by Lucas Andrade 2 months ago

Nishad I've checked everything, mysql is ok, PHP.ini too and the problem continues.

What do I put in the option below:

/*
|--------------------------------------------------------------------------
| 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' => '-03:00',

0

Answered by Nishad 2 months ago

can you try this : 'timezone' => 'America/Sao_Paulo',

0

Answered by Lucas Andrade 1 month ago

Hello, in the demo it was corrected, how do I replicate it to my code that I have installed on the VPS? Thank you

0

Answered by Lucas Andrade 1 month ago

Can you tell me which file to update so I don't have to install the system again? Thank you

0

Answered by Lucas Andrade 1 month ago

And please let me know the parameter too...

0

Answered by Mian Saleem 1 month ago

Please download the file again and follow update instructions form documentation.pdf. Thank you

We use Cookies

We use cookies to ensure that we give you the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies.