diff --git a/src/header/time/mod.rs b/src/header/time/mod.rs
index 114c7f8cd7135386956af46034c7ee652b60f4b6..89eadd6a0fe14ad3c62d71d67b493ff3a11db9c6 100644
--- a/src/header/time/mod.rs
+++ b/src/header/time/mod.rs
@@ -146,7 +146,8 @@ pub unsafe extern "C" fn asctime_r(tm: *const tm, buf: *mut c_char) -> *mut c_ch
     match write_result {
         Ok(_) => buf,
         Err(_) => {
-            platform::errno = EIO;
+            /* asctime()/asctime_r() or the equivalent sprintf() call
+             * have no defined errno setting */
             core::ptr::null_mut()
         }
     }