[pbs-devel] applied: [PATCH proxmox-backup(-qemu) 0/6] improve timestamp handling
Dietmar Maurer
dietmar at proxmox.com
Fri Sep 11 16:00:40 CEST 2020
applied (but, some question will follow)
> On 09/11/2020 2:34 PM Fabian Grünbichler <f.gruenbichler at proxmox.com> wrote:
>
>
> chrono provides two methods to convert seconds+nanoseconds to a
> DateTime:
>
> TimeZone::timestamp(), which panics on invalid input
> TimeZone::timestamp_opt(), which returns a Result-type
>
> this series changes most call sites to use the latter, especially when
> epoch timestamps are transferred between client and server or are
> provided by the user.
>
> depending on context, either raising a nicer error, or using/printing
> the original input values is done when encountering a value that chrono
> does not handle.
>
>
> _______________________________________________
> pbs-devel mailing list
> pbs-devel at lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
More information about the pbs-devel
mailing list