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

Items checked out are due one day too early #3

Open
kaibolay opened this issue Oct 15, 2022 · 0 comments
Open

Items checked out are due one day too early #3

kaibolay opened this issue Oct 15, 2022 · 0 comments

Comments

@kaibolay
Copy link
Contributor

For example:

            "checkout_date": "2022-10-01T13:28:31.000Z",
            "date_due": "2022-10-29T00:00:00.000Z",

Looks like we shouldn't truncate the time and/or use the local timezone.

Context:

{
    "id": 957,
    "borrowernumber": 1114,
    [...]
    "items": [
        {
            "id": 109520,
            "barcode": "000011950",
            "category": "CD",
            "title": "Der kleine Drache Kokosnuss - DIe Jubilaeumsbox",
            "author": "Siegner, Ingo",
            "subject": "CD",
            "publicationyear": 2012,
            "publisher": "Edel Germany GmbH",
            "age": "K-1",
            "serial": 0,
            "seriestitle": "Drache Kokosnuss",
            "classification": "Hoerbuch",
            "itemnotes": "Originals - 5 CDs ",
            "replacementprice": 60,
            "state": "CIRCULATING",
            "isbn10": null,
            "isbn13": null,
            "antolin": null,
            "availability": "AVAILABLE",
            "borrowernumber": 1114,
            "checkout_date": "2022-10-01T13:28:31.000Z",
            "date_due": "2022-10-29T00:00:00.000Z",
            "returndate": null,
            "fine_due": 0,
            "fine_paid": 0,
            "renewable": true
        },
[...]
        ]
    },
    "orders": []
}
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