Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
1 reply
Subscribers
5 subscribers
Views
1012 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Hi, There is an issue with calworkseconds, every time if start second
riteshp
over 8 years ago
Hi,
There is an issue with calworkseconds, every time if start seconds are greater than end seconds, calculates wrong value e.g.
Starttime : 2015-08-27 19:30:50.00
Endtime : 2015-08-27 19:31:01.00
Difference should be 11 secs but it calculate 71 secs
As i could see the code, with
secondOffset = startSeconds > endSeconds ? 60 - startSeconds + endSeconds : endSeconds - startSeconds;
above code implies 50 > 01 so 60 - 50 + 01 = 11
and then (aCal.workingMinutesInRange(19:30, 19:31) * 60) = 60
and then
return (long)(aCal.workingMinutesInRange(startCalendar, endCalendar) * 60) + secondOffset;
return 60 + 11 = 71
So, if workingMinutesInRange is one and secondOffset is less then 60 it should not add additional 60 secs i.e. workingMinutesInRange.
Any help to fix this bug in plugin!
Thanks
OriginalPostID-164215
OriginalPostID-164215
Discussion posts and replies are publicly visible
0
abhi.jana
Appian Employee
over 8 years ago
What is the name of the plugin that has the calworkseconds function? Is it currently available in the Shared Components Page?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel