Fixed incorrect relative time value.

Ticket: [TNL-157] (https://openedx.atlassian.net/browse/TNL-157)

Fixed incorrect relative time value.

Added test.