v.25.5Bug Fix (user-visible misbehavior in an official stable release)

Fix the result of SQL function

Fixes the result of SQL function formatDateTime if a variable-size formatter (e.g. %W aka. weekday Monday Tuesday, etc.) is followed by a compound formatter (a formatter that prints multiple components at once, e.g. %D aka. the American date 05/04/25). #79835 (Robert Schulze).