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

Fix isotime_add and add zero padding for isotime #919

Merged
merged 4 commits into from
Nov 2, 2021

Conversation

ArnoStiefvater
Copy link
Member

@ArnoStiefvater ArnoStiefvater commented Nov 1, 2021

What:

Size of 19 for ISOTIME_SIZE was introduced with f85dbd3. PR: #252
This broke the nasl_isotime_add function.

When time in the format like '869-10-02 12:34' or
'869-10-02 12' was given to string2isotime() the
function did not fill up the missing seconds and
minutes with zeroes.

Jira: SC-455

Why:

How:

Run nasl/tests/test_isotime.nasl. E.g. openvas-nasl -X -t 127.0.0.1 test_isotime.nasl

Checklist:

  • Tests
  • PR merge commit message adjusted

@ArnoStiefvater ArnoStiefvater requested a review from a team as a code owner November 1, 2021 11:29
Size of 19 was introduced with
f85dbd3.
PR: greenbone#252
This broke the nasl_isotime_add function.
When time in the format like '869-10-02 12:34' or
'869-10-02 12' was given to string2isotime() the
function did not fill up the missing seconds and
minutes with zeroes.
@y0urself y0urself merged commit e7f4daf into greenbone:main Nov 2, 2021
mergify bot pushed a commit that referenced this pull request Nov 2, 2021
* Add nasl log domain

* Revert `ISOTIME_SIZE` from 19 to 16

Size of 19 was introduced with
f85dbd3.
PR: #252
This broke the nasl_isotime_add function.

* Add zero values at end of iso time

When time in the format like '869-10-02 12:34' or
'869-10-02 12' was given to string2isotime() the
function did not fill up the missing seconds and
minutes with zeroes.

* Fix formatting

(cherry picked from commit e7f4daf)
mergify bot pushed a commit that referenced this pull request Nov 2, 2021
* Add nasl log domain

* Revert `ISOTIME_SIZE` from 19 to 16

Size of 19 was introduced with
f85dbd3.
PR: #252
This broke the nasl_isotime_add function.

* Add zero values at end of iso time

When time in the format like '869-10-02 12:34' or
'869-10-02 12' was given to string2isotime() the
function did not fill up the missing seconds and
minutes with zeroes.

* Fix formatting

(cherry picked from commit e7f4daf)
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.

3 participants