error accessing struct tm data from avr.libc time

as an extra hint, I would read this page for example