Skip to content

feat: make date busybox compatible#21

Open
herostrat wants to merge 1 commit intoSignalK:masterfrom
herostrat:getdate
Open

feat: make date busybox compatible#21
herostrat wants to merge 1 commit intoSignalK:masterfrom
herostrat:getdate

Conversation

@herostrat
Copy link

@herostrat herostrat commented Feb 15, 2026

I think another (more generic) approach to fix issue #15
and probably #11
I switched the date invocation from passing a formatted ISO string to passing epoch seconds: date -u -s "@". I also added a parse check to ensure the incoming ISO timestamp is valid before converting to epoch seconds.

This command is afaik compatible with busybox, so no detection or something is necessary.

@rhbvkleef could you please verify?

@rhbvkleef
Copy link

Oh I'd missed this last week. Sorry about that. I've put it on my list to test. I am afraid though, that I will only get round to this next week Tuesday.

@rhbvkleef
Copy link

Good news. Works great!

@signalk/set-system-time System time set to 2026-03-03T13:23:30Z 

Apart from the log, I observed the datetime chainging appropriately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants