From: Alan T. DeKok Date: Sat, 8 Mar 2025 14:26:14 +0000 (-0500) Subject: remove '&' from the date module X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70b0cd2753e365fb8530f336a626a393abba7dcb;p=thirdparty%2Ffreeradius-server.git remove '&' from the date module --- diff --git a/doc/antora/modules/reference/pages/raddb/mods-available/date.adoc b/doc/antora/modules/reference/pages/raddb/mods-available/date.adoc index 4cabe7d1e6..0083a6c65e 100644 --- a/doc/antora/modules/reference/pages/raddb/mods-available/date.adoc +++ b/doc/antora/modules/reference/pages/raddb/mods-available/date.adoc @@ -62,7 +62,7 @@ relevant attribute. If the attributes is of type `string`, the string will be parsed according to the `format` configuration, and a Unix date will be returned, as integer seconds since the epoch. -For example, `%date(&Event-Timestamp)` will use the date from the +For example, `%date('Event-Timestamp')` will use the date from the `link:https://freeradius.org/rfc/rfc2869.html#Event-Timestamp[Event-Timestamp]` attribute as the source of the date for printing. ."Get time" mode: @@ -95,12 +95,13 @@ The following expansions return integer numbers: [options="header,autowidth"] |=== -| Parameter | Description -| %l | request time in seconds since the epoch. -| %M | request time microsecond component. -| %c | current time in seconds since the epoch. -| %C | current time microsecond component. -| &Attribute-Name | for string attributes, parse the string according to `format`, and return the integer value as a Unix timestamp. +| Parameter | Description +|=== +| %l | request time in seconds since the epoch. +| %M | request time microsecond component. +| %c | current time in seconds since the epoch. +| %C | current time microsecond component. +| 'Attribute-Name' | for string attributes, parse the string according to `format`, and return the integer value as a Unix timestamp. |=== diff --git a/raddb/mods-available/date b/raddb/mods-available/date index 6b8d180f3d..d77468f379 100644 --- a/raddb/mods-available/date +++ b/raddb/mods-available/date @@ -73,7 +73,7 @@ date date_iso { # string will be parsed according to the `format` configuration, # and a Unix date will be returned, as integer seconds since the epoch. # -# For example, `%date(&Event-Timestamp)` will use the date from the +# For example, `%date('Event-Timestamp')` will use the date from the # `Event-Timestamp` attribute as the source of the date for printing. # # ."Get time" mode: @@ -106,11 +106,12 @@ date date_iso { # # [options="header,autowidth"] # |=== -# | Parameter | Description -# | %l | request time in seconds since the epoch. -# | %M | request time microsecond component. -# | %c | current time in seconds since the epoch. -# | %C | current time microsecond component. -# | &Attribute-Name | for string attributes, parse the string according to `format`, and return the integer value as a Unix timestamp. +# | Parameter | Description +# |=== +# | %l | request time in seconds since the epoch. +# | %M | request time microsecond component. +# | %c | current time in seconds since the epoch. +# | %C | current time microsecond component. +# | 'Attribute-Name' | for string attributes, parse the string according to `format`, and return the integer value as a Unix timestamp. # |=== #