Re: [hackers] [sbase][Patch] date: add date/time setting capability

From: Michael Forney <mforney_AT_mforney.org>
Date: Sun, 3 Sep 2017 13:17:57 -0700

On 2017-03-09, John Vogel <jvogel4_AT_stny.rr.com> wrote:
> This tests good here:
>
> diff --git a/date.c b/date.c
> index dcf2528..67f28d0 100644
> --- a/date.c
> +++ b/date.c
> _AT_@ -25,7 +25,7 @@ datefield(const char *s, size_t i)
> static void
> setdate(const char *s, struct tm *now)
> {
> - struct tm date;
> + struct tm date = { .tm_sec = 0, .tm_isdst = -1 };
> struct timespec ts;
>
> switch (strlen(s)) {

Applied finally, with this and a couple more other minor tweaks.
Received on Sun Sep 03 2017 - 22:17:57 CEST

This archive was generated by hypermail 2.3.0 : Sun Sep 03 2017 - 22:24:53 CEST