Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: eagle9er9er on August 04, 2013, 02:59:59 PM

Title: Bans have weird dates.
Post by: eagle9er9er on August 04, 2013, 02:59:59 PM
Bans aren't banning properly, a Super Admin on my server banned someone for 2 days, but it says they were banned on May 25th, 2013, and unbanned May 27th. I don't undertsand.

EDIT: [ERROR] addons/ulx/lua/ulx/xgui/bans.lua:273: attempt to perform arithmetic on global 'calctime' (a nil value)
  1. DoClick - addons/ulx/lua/ulx/xgui/bans.lua:273
   2. unknown - lua/vgui/dlabel.lua:206

Also this. I need help ASAP
Title: Re: Bans have weird dates.
Post by: Megiddo on August 05, 2013, 05:41:49 AM
This means that your server's date and time are off. I think that error may be due to a recent change in GitHub, so I'll forward it to Stickly Man (the writer of XGUI).
Title: Re: Bans have weird dates.
Post by: eagle9er9er on August 09, 2013, 09:12:41 PM
Okay thanks. Please let me know when it is fixed.
Title: Re: Bans have weird dates.
Post by: eagle9er9er on August 13, 2013, 12:26:25 PM
Can someone please help me out, I'm bumping this because my bans are all set to unban 2 months ago. Any help?

Edit: These are bans that have been made this week. The unban dates are in June? This is becoming a serious problem.

http://steamcommunity.com/sharedfiles/filedetails/?id=169269616
Title: Re: Bans have weird dates.
Post by: Megiddo on August 13, 2013, 02:54:18 PM
This means that your server's date and time are off.

I don't know how to be any clearer than this. This is a problem on your end, not ours.
Title: Re: Bans have weird dates.
Post by: eagle9er9er on August 13, 2013, 03:29:36 PM
I don't know how to be any clearer than this. This is a problem on your end, not ours.

How would you fix this though? I just don't really understand how this happens for no reason.
Title: Re: Bans have weird dates.
Post by: Megiddo on August 13, 2013, 03:35:52 PM
http://bit.ly/13WZYfB I do this a bit tongue in cheek, but I really don't think this is a question you should be asking us.
Title: Re: Bans have weird dates.
Post by: eagle9er9er on August 13, 2013, 04:06:28 PM
My system time is exactly what it should be. Still no fix.
Title: Re: Bans have weird dates.
Post by: Megiddo on August 13, 2013, 04:21:29 PM
This means that your server's date and time are off.
Title: Re: Bans have weird dates.
Post by: eagle9er9er on August 13, 2013, 05:04:26 PM
*sigh* clearly you're just going to repeat the 'problem' without actually helping figure out a solution. I don't know where this server time configuration is, I have never in my life heard of that. I googled it and that was no help. First you say it's server time, then it's my systems time, now you're saying its my server time again.

Maybe facepunch will give a better solution.
Title: Re: Bans have weird dates.
Post by: MrPresident on August 13, 2013, 05:48:32 PM
Allow me! I have plenty of experience illustrating things to people in the Army.

**Server Time and System Time are the same.. thing..**

 ::) ::) ::) ::) ::)

(https://dl.dropboxusercontent.com/u/5982978/ForumLinks/rdp1.png)
(https://dl.dropboxusercontent.com/u/5982978/ForumLinks/rdp2.png)
(https://dl.dropboxusercontent.com/u/5982978/ForumLinks/rdp3.png)
(https://dl.dropboxusercontent.com/u/5982978/ForumLinks/rdp4.png)

If you do not have access to your physical server (because you have your server hosted for you by some crappy company) then you'll need to contact them about correcting the server's Date and Time.
Title: Re: Bans have weird dates.
Post by: MrPresident on August 13, 2013, 06:00:00 PM
Also, just to be sure that we're not putting our foot in our mouth here...

from your SERVER's Console RCON run this command and post exactly what it outputs.


lua_run print(tostring(os.date("%y/%m/%d")))

If it's anything other than 13/08/13 then we have a problem.
Title: Re: Bans have weird dates.
Post by: JamminR on August 13, 2013, 07:16:59 PM
Oh great MrPresident.
You'll make him mad at us (even more) when he runs that command tomorrow or any other time in the future.
Title: Re: Bans have weird dates.
Post by: Bite That Apple on August 14, 2013, 04:30:26 AM
Oh great MrPresident.
You'll make him mad at us (even more) when he runs that command tomorrow or any other time in the future.

I needed a good laugh, and what other place to come than the ULX forums.

(http://cdn.steamcommunity.com/economy/emoticon/p2blue) ...I just hope the facepunch forums helped him, as you've him Mr.President... (http://cdn.steamcommunity.com/economy/emoticon/p2orange)
Title: Re: Bans have weird dates.
Post by: JamminR on August 14, 2013, 02:24:50 PM
I actually laughed out loud a bit when he said he was going to FP to post the question.
Didn't say anything of it...figure why fuel a growing fire of misunderstanding rage.

Hope he posts what the results of what his servers date is.
It's now an unfinished mystery with a long reach to the 'ah HA!' moment.
Title: Re: Bans have weird dates.
Post by: Organik on August 15, 2013, 01:40:08 AM
Also, just to be sure that we're not putting our foot in our mouth here...

from your SERVER's Console RCON run this command and post exactly what it outputs.


lua_run print(tostring(os.date("%y/%m/%d")))

If it's anything other than 13/08/13 then we have a problem.

I have this issue as well. I ran your command in my servers console and it outputs the date correctly.

13/08/15
Title: Re: Bans have weird dates.
Post by: Bite That Apple on August 15, 2013, 02:28:02 AM
I actually laughed out loud a bit when he said he was going to FP to post the question.
Didn't say anything of it...figure why fuel a growing fire of misunderstanding rage.

Hope he posts what the results of what his servers date is.
It's now an unfinished mystery with a long reach to the 'ah HA!' moment.

Indeed.
Title: Re: Bans have weird dates.
Post by: JamminR on August 15, 2013, 02:16:00 PM
Organik, attach your <gmod server>\data\ulx\bans.txt file pleaee?
Additionally, are you using the SVN version of both ULib and ULX, as obtained from our Github repository?
Title: Re: Bans have weird dates.
Post by: Organik on August 15, 2013, 04:08:09 PM
Organik, attach your <gmod server>\data\ulx\bans.txt file pleaee?
Additionally, are you using the SVN version of both ULib and ULX, as obtained from our Github repository?

Hmm, it doesn't seem I have a <server>\data\ulx\bans.txt file. I am using the SVN versions.
Title: Re: Bans have weird dates.
Post by: Decicus on August 15, 2013, 06:11:20 PM
JamminR did a little mistake, they're in -server-\data\ulib\bans.txt.
Title: Re: Bans have weird dates.
Post by: Organik on August 15, 2013, 06:20:58 PM
Got it, http://pastebin.com/pfXXYZUB
Title: Re: Bans have weird dates.
Post by: JamminR on August 15, 2013, 07:29:09 PM
Just so we have this straight...which users from your ban file were banned in the past few days, but, are XGUI is stating they were banned (and ban expiry) few months past?
And, are you getting the same 'calctime' error as the original poster listed?
The only 'oddity' I see are the last two bans of your file, which state ban time and expiration time are both one and same (individually).
Code: [Select]
        "unban" "1376692494"
        "time"  "1376092494"
        "name"  "kleo1234"
That time = Fri, 16 Aug 2013 22:34:54 GMT according to Epochconverter.com
Code: [Select]
        "unban" "1378259843"
        "time"  "1375667843"
        "name"  "Hank Hill"
That time = Mon, 05 Aug 2013 01:57:23 GMT according to epochconverter.com

I've not loaded in Gmod, but wanted to know bit more detail first.
Title: Re: Bans have weird dates.
Post by: Stickly Man! on August 20, 2013, 08:16:21 AM
The 'calctime' error is a known bug due to me forgetting to change out some code before committing last, I should have time to fix that later tonight. I don't think it's related to this ban time issue, but I will double check it myself as well.
Title: Re: Bans have weird dates.
Post by: Colek on August 24, 2013, 11:27:25 AM
Is there any, even temp, fix for this?
Title: Re: Bans have weird dates.
Post by: Stickly Man! on August 24, 2013, 01:06:11 PM
I just pushed a fix for the initial ban editing bug (the calctime error). I also fixed a few other ban-related bugs in the process, but I'm not sure if it fixes what you guys are having issues with.

In my testing, I did not experience any problems with the ban dates/times. I am running a dedicated server that's on the same computer, ergo same timezone. I'd be willing to look into this more if time allows. So if someone wants me to, I can post a set of instructions to gather some specific information from you that may help me diagnose the problem.
Title: Re: Bans have weird dates.
Post by: Colek on August 25, 2013, 05:22:59 AM
Now it works just fine, thanks!