Skip to content

J1939: Handle localtime_r() failure in TD PG#627

Open
SamantazFox wants to merge 1 commit intolinux-can:masterfrom
SamantazFox:patch-2
Open

J1939: Handle localtime_r() failure in TD PG#627
SamantazFox wants to merge 1 commit intolinux-can:masterfrom
SamantazFox:patch-2

Conversation

@SamantazFox
Copy link
Copy Markdown

@SamantazFox SamantazFox commented May 5, 2026

When the call to localtime_r() fails (by returning NULL, as per the POSIX specification), make sure to fill the hour/minute offsets with the fallback values as specified in the J1939DA supporting information.

Copy link
Copy Markdown
Member

@marckleinebudde marckleinebudde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Just a cosmetic change.

Comment thread j1939_timedate/j1939_timedate_srv.c Outdated
When the call to localtime_r() fails (by returning NULL, as per the POSIX specification), make sure to fill the hour/minute offsets with the fallback values as specified in the J1939DA supporting information.
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