Skip to content

daemon: fix time() 32-bit overflow in 2038 year#52

Open
GermanAizek wants to merge 1 commit intotelmich:masterfrom
GermanAizek:fix-problem-2038-year
Open

daemon: fix time() 32-bit overflow in 2038 year#52
GermanAizek wants to merge 1 commit intotelmich:masterfrom
GermanAizek:fix-problem-2038-year

Conversation

@GermanAizek
Copy link
Copy Markdown

@telmich, @darko-poljak
Replaced the use of time_t with struct timeval and time() with gettimeofday() for time handling to prevent overflow in 2038.

References:

Replaced the use of time_t with struct timeval and time() with gettimeofday() for time handling to prevent overflow in 2038.

References:
- https://en.wikipedia.org/wiki/Year_2038_problem
- https://www.gnu.org/software/gnulib/manual/html_node/Avoiding-the-year-2038-problem.html
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.

1 participant