1b.app
Link copied -

BAG in the action "Calculate the difference in process dates taking into account the coefficient and record in the additional field of the process"

Actions "Calculate the difference in process dates taking into account the coefficient and record in the additional field of the process"
March = 31 days
if you count by action
1) Take the process date: 03/01/2024
2) Subtract the date of the process: 31.03.2024
Calculate the date difference: days ago
Subtraction operation
= the action will count for 30 days! (which is correct)
if you count by action
1) Take the process date: 03/01/2024
2) Subtract the process date: 04/01/2024
Calculate the date difference: days ago
Subtraction operation
= the action will count for 30 days! (which is NOT correct, should be 31 days, since March = 31 days)
Original question is available on version: ua

Answers:

The date difference is calculated in hours (24 hours is one day), from the 30th to the 31st there is a change in time zone (an hour back) and it turns out that on the 31st there are 23 hours in a day, therefore it is considered that there are 30 full days (24 hours) in this month and not 31.
12.08.2024, 10:49
Original comment available on version: ru


let him cook
OneBox production wrote:
The difference in dates is counted in hours (24 hours one day), from the 30th to the 31st there is a time zone change (an hour earlier) and it turns out that the 31st is 23 hours per day, so it is considered that there are 30 full days (24 hours each) in this month , not 31.

No wonder, but logical!
Of course.
Thank you!
12.08.2024, 12:47
Original comment available on version: ua

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment