79735744

Date: 2025-08-14 17:49:36
Score: 2
Natty:
Report link

As Panagiotis Kanavos pointed out earlier (in the staging phase) - the 'hoursDiff' value is the same between the two runtimes (it can be proved by printing the entire double using the 'N20' toString parameter).

Therfore, the issue must be related to differences in the DateTime object.

After further investigation of the NET DateTime documenation I have found that there's been a change in the rounding behavior inside the DateTime.AddHours method which I beilive is the source of the issue.

Source - https://learn.microsoft.com/en-us/dotnet/api/system.datetime.addhours?view=net-7.0

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Aviv Dayan