adafruit / adafruit/Adafruit_Wippersnapper_Arduino

Offline log files use the timestamp for filename, would be great if the file metadata timestamps matched too.

Open
#716 0 comments 0 reactions 0 assignees View on GitHub
offline-mode
Dominant language
C++
Stars
54
Forks
56
Avg merge
2d 12h
Merged PRs (30d)
11

Description

Files can have three dates associated, the Creation timestamp, the Modified timestamp, and the Archived timestamp.
These are shown to the user in various places, but usually only the modified date is shown (or created timestamp is sometimes used, but never usually the archived date as it traditionally related to backup status).

The default for all log files is 01/01/2025, but it would be wonderful if the creation and modified timestamps were also set to the time used in the filename (assuming the RTC is valid).

When mentioned to Brent, he highlighted this example from the file operation examples:
https://github.com/greiman/SdFat/blob/master/examples/RtcTimestampTest/RtcTimestampTest.ino

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked SdFat RtcTimestampTest/RtcTimestampTest.ino example, then locate the code that creates offline log files. Verify how the filename time is obtained and whether the RTC is valid. Done means creation and modified metadata timestamps use that time instead of the default 01/01/2025, while invalid RTC behavior is defined.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
embedded-iot
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.