FrozenTime change my datetime

I have a problem with the FrozenTime class, when I do a find to a table I convert the date to another one. that is to say in my database I have a date and when I see the date after doing my search it is the same date but with different time. Can anybody help me. :woozy_face:

Could you show us a little piece of code of what you’re trying?

I could find the problem apparently it is generated by using timestap type and frozentime converts it, it can be question of formats. but it will be possible to disable the frozentime class ?

Technically speaking (I have no clue if this is a good idea but w/e) you could convert it to a Unix timestamp and then use it as if it where a “non-frozen” time:

$time = gettime(); // replace with your actual code
$timeStamp = $time->i18nFormat(Time::UNIX_TIMESTAMP_FORMAT);
$newTime = Time::createFromTimestamp($timeStamp);

It’s just a blind guess because I have no clue what you’re trying to accomplish because I can’t see what your code is doing…

Maybe its a timezone problem.
Did you modify the defaultTimezone in config/app.php ?

If so, you should modify the database program to also use the same timezone