Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

date() does not return a valid time/date #24

Closed
CheyenneWills opened this issue Oct 25, 2023 · 1 comment
Closed

date() does not return a valid time/date #24

CheyenneWills opened this issue Oct 25, 2023 · 1 comment
Assignees

Comments

@CheyenneWills
Copy link
Contributor

The following returns incorrect time and dates:

   output = date()
   output = date(0)
   output = date(1)
   output = date(2)
end
02/19/70 09:39:51
02/19/70 09:16:13
02/19/1970 09:16:13
1970-02-19 09:16:13
@CheyenneWills
Copy link
Contributor Author

Found the problem, very simple fix.

A call to the C time() function was dropped at one point, so the date/time values were never initialized correctly during the call to spitbol's date() function.

The fix is a simple oneliner. I will create a new release with that fix (as well as a few other minor changes).

@CheyenneWills CheyenneWills self-assigned this Oct 25, 2023
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

No branches or pull requests

1 participant