]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
%M is supposed to be microseconds, not milliseconds
authorNick Porter <nick@portercomputing.co.uk>
Thu, 12 Jun 2025 07:19:30 +0000 (08:19 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 12 Jun 2025 07:19:30 +0000 (08:19 +0100)
src/lib/unlang/xlat_eval.c

index ed6de1aace7fea49029213a3ac6327de9236c8cb..585a14af39a5163de294952e61d58da9f6981a83 100644 (file)
@@ -889,8 +889,8 @@ xlat_action_t xlat_eval_one_letter(TALLOC_CTX *ctx, fr_value_box_list_t *out,
                /*
                 *      @todo - we probably should remove this now that we have FR_TYPE_DATE with scaling.
                 */
-               MEM(value = fr_value_box_alloc(ctx, FR_TYPE_UINT32, NULL));
-               value->datum.uint32 = fr_time_to_msec(request->packet->timestamp) % 1000;
+               MEM(value = fr_value_box_alloc(ctx, FR_TYPE_UINT64, NULL));
+               value->datum.uint64 = (uint64_t)fr_time_to_usec(request->packet->timestamp) % 1000000;
                break;
 
        case 'S': /* Request timestamp in SQL format */