ERROR: Failed to create pair - failed to parse time string
Alan DeKok
aland at deployingradius.com
Tue Feb 4 16:42:13 CET 2020
On Feb 4, 2020, at 9:17 AM, Никита Борисенков <bna at sunlink.ru> wrote:
>
> Hello, everything works for me, but the messages in the debug output confuse me.
>
> (0) perl: ERROR: Failed to create pair - failed to parse time string "фев 4 2020 16:46:57 MSK"
> (0) perl: ERROR: &request:Event-Timestamp = $RAD_REQUEST{'Event-Timestamp'} -> 'фев 4 2020 16:46:57 MSK'
>
> I understand that the date string contains non-English letters.
Yes.
> Is this attribute populated by the service itself?
The attribute should be (a) a 32-bit integer, or (b) English text describing the date.
> What can I configure to prevent these errors?
Set the LOCALE for FreeRADIUS to an English one.
In short, date parsing is hard. Very hard. The only way we *know* it's correct is to parse what we know: English text.
Alan DeKok.
More information about the Freeradius-Users
mailing list