RTEMS | Cannot obtain dates later than 2100 (!339)

Gedare Bloom (@gedare) gitlab at rtems.org
Sat Feb 8 21:04:37 UTC 2025



Merge request https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/339 was reviewed by Gedare Bloom

--
  
Gedare Bloom started a new discussion on cpukit/rtems/src/clockgettod.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/339#note_119513

 > -
 > +  struct tm buf;
 > +  struct tm *current_time_tm; 

maintain the style alignment:

```
struct timeval now;
struct tm      buf;
struct tm     *current_time_tm;
```

--
  
Gedare Bloom started a new discussion on cpukit/rtems/src/clockgettod.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/339#note_119514

 > -  time_of_day->minute = time_of_day->minute / RTEMS_SECS_PER_MINUTE;
 > +  time_of_day->year   = 1900 + current_time_tm->tm_year;
 > +  time_of_day->month  =  current_time_tm->tm_mon;

remove the extra space after the `=`.


-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/339
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250208/2439b89c/attachment.htm>


More information about the bugs mailing list