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

From: John Vogel <jvogel4_AT_stny.rr.com>
Date: Mon, 4 Sep 2017 01:09:46 -0400

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

> 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.
>

Thanks for all your efforts. Very much appreciated.
Received on Mon Sep 04 2017 - 07:09:46 CEST

This archive was generated by hypermail 2.3.0 : Mon Sep 04 2017 - 07:12:29 CEST