Fix for Bug 456380 - Relative time periods are not calculated correctly.

Signed-off-by: xinzhao-acutate <xzhao@actuate.com>