Time Isnt adding correct


#1

This should be an hour and 25 minutes why is it adding up to 10 hours later?!?! What am I doing wrong?


#2

I believe the “H” in addHours is supposed to be capitalized…
If that doesn’t fix it, it would help to know what is stored in @custom


#3

That didn’t fix it. @custom is a time only variable of 5:30am. It should be changing customb4 to 6:25am but is changing it to 4:15pm.


#4

Here are three solutions, with the easiest at the top…


Why not simply use:
addMinutes(@custom,85)

Like this:

temp


Alternatively, if you need hours and minutes separated, you can do the math inline like this:

temp


And since there is so many ways to do stuff in webCORE, this is likely what you were aiming for originally:

temp

(but the extra parenthesis may be a bit confusing to some)


#5

Wow I banged my head against the wall and it’s that simple lol.


#6

Don’t feel bad. I have more than my share of ‘blonde’ moments, LOL