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

Context

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

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).