Fixed issue in implementation of #282
The time formatting function crashed, if used with a date larger than year 2038. This was fixed.
Authored by: numere 2018-10-09
Parent: [r398]
Child: [r400]