[RADIATOR] Strange behavior with %J
Mike McCauley
mikem at open.com.au
Mon Jan 5 16:47:55 CST 2009
Hello José
Thanks for reporting this.
In fact it should have used %d to get a leading 0 in the day. This has now
been fixed in the latest patch set.
Cheers.
On Tuesday 06 January 2009 01:05:04 am Jose Borges Ferreira wrote:
> According to the manual %J should give "The Timestamp in another common
> SQL date time format: 2003-09-12 15:48:00"
>
> I'm doing
>
> AcctLogFileFormat
> %J;%{Acct-Status-Type};%{Called-Station-Id};%{Calling-Station-Id}
>
> and getting
>
> 2009-01- 5 14:00:00;Stop;xxxxxxxxxxxxxxxxx;yyyyyyyyyyyyyyyyy
>
> I should get a leading 0 in the day!
>
> But according to the source %J is returning
> Radius::Util::strftime('%Y-%m-%e %H:%M:%S', $ptime) . Is this correct ou
> should be
> Radius::Util::strftime('%Y-%m-*%d* %H:%M:%S', $ptime) ?
>
>
> José Borges Ferreira
>
>
> Eddie Izzard - "I grew up in Europe, where the history comes from."
--
Mike McCauley mikem at open.com.au
Open System Consultants Pty. Ltd
9 Bulbul Place Currumbin Waters QLD 4223 Australia http://www.open.com.au
Phone +61 7 5598-7474 Fax +61 7 5598-7070
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS,
TTLS, PEAP, TNC, WiMAX, RSA, Vasco, DIAMETER etc. Full source
on Unix, Windows, MacOSX, Solaris, VMS, NetWare etc.
More information about the radiator
mailing list