Last edited by mesmoro; 28-08-22 at 06:57 PM.
@mesmoro Probably in your case the problem is related to the incorrect definition of the time zone.
Try to log out of the Admin Panel using the Logout button and log in again.
- - - Updated - - -
Also, try to solve this problem, open file src\controllers\admin.controller.js and replace this line:
with:Code:req.user.tz = req.body.tz || moment.tz.guess();
Restart the API, log out of the admin panel and log in again.Code:req.user.tz = moment.tz.zone(req.body.tz)?.name || moment.tz.guess();
Last edited by hsdn; 28-08-22 at 07:31 PM.
@mesmoro You need log out of the admin panel and log in again. You can also try deleting the sessions directory.
- - - Updated - - -
Also, show me what timezone you have when you run the API:
![]()
@mesmoro Show me the Profile page in Admin Panel.
- - - Updated - - -
According to my tests, an error like yours only appears if the req.user.tz variable is null or undefined.
This variable is filled when you log-in (written to the session file). For some reason it doesn't work for you.
@mesmoro
did you try run all app as administrator?
At the moment i Uploading full preinstalled clean VM All is installed and working perfect.
WebApp access from two address: 127.0.0.1 and 127.0.0.1:88 and all other api works ok
All tested with Chrome and Edge Browser and no any issues.
Soon will post links and info.
Last edited by shadow66; 28-08-22 at 10:20 PM.
@mesmoro Unfortunately, I have no idea how to fix this problem. For some reason your user.tz variable is empty.
Variable can only be empty if you login the API from an old browser (before the fix https://github.com/justkeepquiet/ter...1145c215f0a4f4) and then didn't delete the sessions folder. Installing this fix and deleting the sessions folder (with the stopped API) should have completely solved the problem.
Try to install this update:
1. Download updated API: https://github.com/justkeepquiet/ter...ads/master.zip
2. Replace all files of tera-api\src directory with new ones.
3. Stop TeraAPI.
4. Delete tera-api\sessions folder.
5. Start TeraAPI.
I fixed the algorithm for passing variables to the session, this should help in solving the problem.