Not that simple Ted, you have to see the timezone on Windows. Something
like four words separated by commas... :-)


On Thu, Jun 27, 2013 at 4:18 PM, Ted Zlatanov <notifications@github.com>wrote:

> In cf-execd/cf-execd-runner.c:
>
> >      {
> > -        fclose(fp);
> > -
> > -        unsigned char digest1[EVP_MAX_MD_SIZE + 1];
> > -        int md_len1 = FileChecksum(prev_file, digest1);
> > +        const char *errptr;
> > +        int erroffset;
> > +        // Match timestamps and remove them. Not Y21K safe! :-)
> > +        pcre *regex = pcre_compile("^20[0-9][0-9]-[01][0-9]-[0-3][0-9]T[0-2][0-9]:[0-5][0-9]:[0-5][0-9]",
>
> Perhaps better, untested:
> ^2[0-9]{3}-[01][0-9]-[0-3][0-9]T[0-2][0-9]:[0-5][0-9]:[0-5][0-9]([+][0-9]+)?\b
>
> (It makes the timezone optional.)
>
> \b is "word boundary"
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/cfengine/core/pull/780/files#r4916506>
> .
>