Project

General

Profile

Actions

Bug #11955

open

Discrepancy between Wt WDate::daysTo and jWt WDate::getDaysTo

Added by Matthias Van Ceulebroeck 8 months ago. Updated 6 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
09/18/2023
Due date:
% Done:

0%

Estimated time:

Description

Suppose we have two timestamps, that are 23 hours and 59 minutes apart, but fall on different dates.

On Wt, this will result in a daysTo == 1, but on jWt this will result in getDaysTo == 0. This is because Wt looks at the actual dates, and will report a difference if the two dates fall on different dates.
However, jWt will compare two timestamps and only return 1 if they are at least 24 hours apart.

Actions #1

Updated by Matthias Van Ceulebroeck 6 months ago

  • Target version changed from 4.10.2 to 4.10.3
Actions

Also available in: Atom PDF