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

Gedare Bloom (@gedare) gitlab at rtems.org
Wed Mar 12 08:10:04 UTC 2025




Gedare Bloom started a new discussion on testsuites/sptests/sptod/init.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/339#note_120801

 > +);
 > +
 > +/*
 > + *  List of dates and times to test.
 > + */
 > +#define NUMBER_OF_DATES   8
 > +rtems_time_of_day Dates[ NUMBER_OF_DATES ] = {
 > +  /* YEAR, MONTH, DAY, HOUR, MINUTE, SECOND, TICKS */
 > +  {  1988,   1,    1,   12,    45,     00,     0 },
 > +  {  1988,  12,   31,    9,    00,     00,     0 },
 > +  {  1999,  12,   31,   23,    55,     59,     0 },
 > +  {  1999,  06,   30,   00,    01,     30,     0 },
 > +  {  2000,   1,    1,    0,    15,     59,     0 },
 > +  {  2005,   2,    2,    5,    10,     59,     0 },
 > +  {  2010,   3,    3,   10,     5,     59,     0 },
 > +  {  2020,   4,    4,   15,     0,     59,     0 },

One of these test cases should be beyond year 2100, and therefore should fail without the change to using gmtime. Please add the future date, and confirm this test fails without the cpukit modifications

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/339#note_120801
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/20250312/78c813c5/attachment-0001.htm>


More information about the bugs mailing list