WISPr-Session-Terminate-Time error

Receiving an error when passing this attribute to the Hotspot:

Required format: YYYY-MM-DDThh:mm:ssTZD

hotspot,error,info,debug testuser10 (172.16.101.250):
ignoring invalid session terminate time <2009-05-07P11:59:59+10:00> from RADIUS

Manual says that TZD can be in the form of:
+hh:mm", “+hhmm”, “-hh:mm”, “-hhmm”

Something I’m missing?

RouterOS 2.9.39

Why is there a ‘P’ used between date and time? I suppose there should be a ‘T’.

I had considered that but the manual says:

T - either “A” for AM, or “P” for PM;

So I thought “T” was merely a gap filler to be replaced with A or P?

we will fix the docs, it should be T

So the time should be in 24hr format then?

Thanks.

yes

I am also having this problem…

05:42:56 hotspot,error,info,debug minutetest (10.10.10.208): ignoring invalid session terminate time <2008-01-10MST12:46:53-07:00> from RADIUS

I use the correct format as directed and the “T” is replaced with the MST (mountain standard I assume)…is that supposed to happen? Here is the code I use to setup the terminate time…

$_SESSION[expire_time] = strtotime(“+5minutes”);
$_SESSION[expire_time] = date(‘Y-m-dTH:i:s-07:00’,$_SESSION[expire_time]);

What am I missing here?

Thanks in advance,
Grant

Ok, well apparently, the date() function was pre-parsing the T and replacing with the timezone.
Assuming the MT box wanted to parse it instead, I went ahead and did a string replace putting the T back in the $_SESSION[expire_time]…

//$_SESSION[expire_time] = substr_replace($_SESSION[expire_time], ‘T’, 10, -14) ;

That took care of the errors I was finding in the logs, but user is still not disconnected.

Solution:
Checked my system clock on the MT box and it was set incorrectly. tried logging in under expired user and it gave session expired error message as expected.

thought this update might help someone out perhaps