Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #4452

Category None
Changed by Dan Wells <dbw2ohnoyoudont@calvin.edu>
Changed at Mon 31 Jul 2017 12:06:42
Repository git://git.evergreen-ils.org/Evergreen.git
Project Evergreen
Branch master
Revision 04a101312b0a42d34108c8d78997a3960241363a

Comments

LP#1635737 Use new OpenSRF interval_to_seconds() context
Use the optional context for interval_to_seconds() to account for the
variable length of duration components.  For example, "1 day" may be
shorter or longer than 24 hours during a time change event, "1 month"
may be shorter or longer depending on which month it is currently, etc.

Also, remove some timestamp munging, as that happens within
interval_to_seconds() already.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Mike Rylander <mrylander@gmail.com>

Changed files