Today's test to raise a bug, said the message is not the right time to remind, set 2 hours in advance, not yet to remind.
Look at the code.
(M.expectreceivetime-datetime.now). Minutes < (Pmodel.ertdelayprevminutes = = -999? 0:pmodel.ertdelayprevminutes))
Perform
(M.expectreceivetime-datetime.now). Minutes
The result is 55, according to the truth, 170.
Perform
(M.expectreceivetime-datetime.now). Totalminutes
The result is 169.89568451.
Finally, the code is modified to
(Convert.todecimal (M.expectreceivetime-datetime.now). Totalminutes) < (Pmodel.ertdelayprevminutes = = -999? 0:pmodel.ertdelayprevminutes))
Bug resolution
Add:
Days; Day part Hours; hour part milliseconds; Millisecond part minutes; Sub-part seconds; Second part ticks; Total Tick totaldays; Total days totalhours; The total number of hours totalmilliseconds; Total number of milliseconds totalminutes; The total number of minutes totalseconds; Total number of seconds