Revision 437900eb core/src/aos_system.c

View differences:

core/src/aos_system.c
461 461

  
462 462
      // read and print new date and time
463 463
      aosSysGetDateTime(&dt);
464
      chprintf(stream, "date/time set to %02u:%02u:%02u @ %02u-%02u-%04u\n",
465
               dt.tm_hour, dt.tm_min, dt.tm_sec,
466
               dt.tm_mday, dt.tm_mon+1, dt.tm_year+1900);
464
      chprintf(stream, "date/time set to %04u-%02u-%02u %02u:%02u:%02u\n",
465
               dt.tm_year+1900, dt.tm_mon+1, dt.tm_mday,
466
               dt.tm_hour, dt.tm_min, dt.tm_sec);
467 467

  
468 468
      retval = AOS_OK;
469 469
    }

Also available in: Unified diff