From: Nick Porter Date: Thu, 12 Jun 2025 07:19:30 +0000 (+0100) Subject: %M is supposed to be microseconds, not milliseconds X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f28078e1ce74efb7e8ee4f2cbf811b3ef4b3b9b;p=thirdparty%2Ffreeradius-server.git %M is supposed to be microseconds, not milliseconds --- diff --git a/src/lib/unlang/xlat_eval.c b/src/lib/unlang/xlat_eval.c index ed6de1aace7..585a14af39a 100644 --- a/src/lib/unlang/xlat_eval.c +++ b/src/lib/unlang/xlat_eval.c @@ -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 */