OpenSRF::Utils::interval_to_seconds doesn't understand weeks or seconds
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenSRF |
Fix Released
|
Medium
|
Unassigned |
Bug Description
This was discovered when testing the library setting "Checkout auto renew age" in Evergreen.
opensrf@
0
opensrf@
60
opensrf@
3600
opensrf@
86400
opensrf@
0
opensrf@
2628000
opensrf@
31536000
Changed in opensrf: | |
milestone: | none → 2.4.2 |
importance: | Undecided → Medium |
status: | Fix Committed → Fix Released |
http:// git.evergreen- ils.org/ ?p=working/ OpenSRF. git;a=shortlog; h=refs/ heads/collab/ phasefx/ interval_ to_seconds
opensrf@ dev141: ~/git/OpenSRF (interval_ to_seconds) $ perl -MOpenSRF::Utils -e 'print OpenSRF: :Utils: :inte dev141: ~/git/OpenSRF (interval_ to_seconds) $ perl -MOpenSRF::Utils -e 'print OpenSRF: :Utils: :inte dev141: ~/git/OpenSRF (interval_ to_seconds) $ perl -MOpenSRF::Utils -e 'print OpenSRF: :Utils: :inte dev141: ~/git/OpenSRF (interval_ to_seconds) $ perl -MOpenSRF::Utils -e 'print OpenSRF: :Utils: :interval_ to_seconds( "1 day") . "\n";' dev141: ~/git/OpenSRF (interval_ to_seconds) $ perl -MOpenSRF::Utils -e 'print OpenSRF: :Utils: :interval_ to_seconds( "1 week") . "\n";' dev141: ~/git/OpenSRF (interval_ to_seconds) $ perl -MOpenSRF::Utils -e 'print OpenSRF: :Utils: :interval_ to_seconds( "1 month") . "\n";' dev141: ~/git/OpenSRF (interval_ to_seconds) $ perl -MOpenSRF::Utils -e 'print OpenSRF: :Utils: :interval_ to_seconds( "1 year") . "\n";'
rval_to_seconds("1 second") . "\n";'
1
opensrf@
rval_to_seconds("1 minute") . "\n";'
60
opensrf@
rval_to_seconds("1 hour") . "\n";'
3600
opensrf@
86400
opensrf@
604800
opensrf@
2628000
opensrf@
31536000