Added consideration of the RTC offset

Signed-off-by: Christian Ege <k4230r6@gmail.com>