Skip to content

[BUG] SIM is creating file with wrong date/time #3410

@acassis

Description

@acassis

Description / Steps to reproduce the issue

This issue was discovered by @Biancaa-R and @linguini1 see here: #3406

nsh> date
Thu, Jan 22 18:08:41 2004 
nsh> date -s "Feb 23 22:35:00 2026"
nsh> echo "hey" > hello.txt
nsh> ls -l
/:
 ----/--/-- --:-- dr-xr-xr-x           0 bin/
 2026-02-23 16:58:38 drwxrwxr-x        4096 data/
 2008-06-01 00:00:00 drwxrwxrwx           0 dev/
 ----/--/-- --:-- dr-xr-xr-x           0 etc/
 2004-01-22 18:08:50 -rw-rw-rw-           4 hello.txt
 2004-01-22 18:08:46 -rw-rw-rw-           3 hi.txt
 ----/--/-- --:-- dr--r--r--           0 proc/
 ----/--/-- --:-- drw-rw-rw-           0 tmp/ 

On which OS does this issue occur?

[OS: Linux]

What is the version of your OS?

All

NuttX Version

mainline

Issue Architecture

[Arch: all]

Issue Area

[Area: System]

Host information

No response

Verification

  • I have verified before submitting the report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions