Skip to content

Items checked out are due one day too early #3

Description

@kaibolay

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": []
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions