code change · fixAL Developmentofficial - Microsoftreviewed - checked by Opus

#11507 [Master] Fix Unix timestamp timezone conversion

Unix timestamp conversion in TypeHelper now delegates to System.DateTime's Unix Timestamp codeunit to avoid incorrectly shifting UTC instants by the user's timezone offset, especially during daylight saving time.

Pull request · merged into main (BC30) on 2026-09-23 by haoranpb · 2 files (+52 -16), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • TypeHelper.EvaluateUnixTimestamp previously added timezone offset when converting Unix timestamps, causing one-hour shifts during summer time
  • Conversion now uses System.DateTime’s Unix Timestamp codeunit which correctly uses DateTimeOffset.FromUnixTimeSeconds
  • Tests verify that the same UTC instant is returned regardless of user timezone (UTC or Central Europe Standard Time)
  • Fixes issue where Central European summer time shifted the represented UTC instant by one hour
  • Behaviour changes for users or extensions.

AL objects touched

Also merged into

  • #12928 into releases/29.x on 2026-11-04

Context

  • Work items: AB#650271
  • Labels: Team: Integrations
  • Systems: development

No source states these links: they share an object, a model read them, or a person found the same subject.

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).