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

zack liang (@zakthertemsdev) gitlab at rtems.org
Sat Nov 30 21:15:29 UTC 2024



zack liang created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/339

Project:Branches: zakthertemsdev/rtems:tod2100 to rtems/rtos/rtems:main
Author:   zack liang




The method rtems_clock_get_tod() uses its own math to fill in the rtems_time_of_day structure. Its calculations should be replaced with a call to gmtime() which can handle leap years better.

closes #5143


## Summary


<!-- Default settings, if it is a dropdown it will set after submission -->
__

-- 
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/20241130/ee69c1cb/attachment.htm>


More information about the bugs mailing list