I'm using v18.8.0-x64.
I also get the same problem on v18.1.0-x64.
Printable View
@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();
I made the change but the problem persists.
I tried to change my time zone but without success.
https://uploaddeimagens.com.br/image...jpg?1661709917
@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:
https://i.imgur.com/608dJ7T.png
I logged out and relog but the error persists.
I've used several different time zones, currently I'm using my local time
https://uploaddeimagens.com.br/image...jpg?1661712343
@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.
Deleting the folder, tera API will crash.
When opening again the folder is recreated.
sorry I didn't quite understand where this Profile page is so I'm sorry if I sent something wrong.
https://uploaddeimagens.com.br/image...jpg?1661717278
when trying to enter the profile:
https://uploaddeimagens.com.br/image...jpg?1661717294
@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.