You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When getting api/v2/user/panel get 500 error due to database now() output for postgresql contains more than expected content. Unlike mysql, now() returns more data (e.g. timezone). So carbon failed to parse the string and returned 500.
To Reproduce
Steps to reproduce the behavior:
Use postgresql
create user in the limited group
login and call panel api
See error below
Expected behavior
Should handle now() output by postgresql properly.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information): I don't think this is related
OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]
Smartphone (please complete the following information): I don't think this is related
Also while reading the code for fresnsTimeByTimezone(), I am not sure I understand what we are trying to do here. If MySql returns string without timezone in fresnsDatabaseCurrentDateTime(), is this function working as expected?
Also while reading the code for fresnsTimeByTimezone(), I am not sure I understand what we are trying to do here. If MySql returns string without timezone in fresnsDatabaseCurrentDateTime(), is this function working as expected?
For example
If $time is the time at 10:30 and the system timezone is +8, then 10:30 is the current time in the +8 timezone.
$timezone is the timezone you want to use, for example +2 timezone, then you will get 04:30 as a result.
This is so that people in different time zones will see the time value as the current time on their own clocks.
The fresnsDatabaseCurrentDateTime error affects this functionality.
Fresns Version
2.17
Describe the bug
When getting
api/v2/user/panel
get 500 error due to databasenow()
output for postgresql contains more than expected content. Unlike mysql, now() returns more data (e.g. timezone). So carbon failed to parse the string and returned 500.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should handle
now()
output by postgresql properly.Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information): I don't think this is related
Smartphone (please complete the following information): I don't think this is related
Additional context
dump currentTime
stacktrace
The text was updated successfully, but these errors were encountered: