How Config Datetime to log #768
Unanswered
ocarlosapenas
asked this question in
Q&A
Replies: 2 comments 1 reply
-
I have the same problem too. |
Beta Was this translation helpful? Give feedback.
1 reply
-
@carlossantoswd if you are in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm a begginer using activitylog.
I have my model implemented to store some dates, and the dates are saved with correct datetime in DB:
In model Table: mydate = 2020-08-31 15:00:00
But, when a see the logs, the datetime was salved with wrong datetime:
{ "old": { "mydate": null, }, "attributes": { "mydate": "2020-08-31T18:00:00.000000Z", } }
Adding 3hr;
If I set the cast in model, the log pass to save:
{ "old": { "mydate": null, }, "attributes": { "mydate": "2020-08-31T03:00:00.000000Z", } }
It's 12hr diff time;
My local time is config to GMT-3 and laravel too.
There is something I'm missing?
Beta Was this translation helpful? Give feedback.
All reactions