fixing date parsing to work on device

Signed-off-by: Ondrej Rafaj <ondrej.rafaj@fuerteint.com>