Fossil SCM
Fixed an off-by-one error in the error log header printer, resulting in the day number being for the next day past the call time. Bug diagnosis and fix from https://fossil-scm.org/forum/forumpost/0d5933da4c
Commit
cf9b44a966d9f280596551ea371bad7009160673a1f184624d7892903c27f11d
Parent
77371043a47ed23…
1 file changed
+1
-1
+1
-1
| --- src/printf.c | ||
| +++ src/printf.c | ||
| @@ -1002,11 +1002,11 @@ | ||
| 1002 | 1002 | if( out==0 ) return; |
| 1003 | 1003 | } |
| 1004 | 1004 | now = time(0); |
| 1005 | 1005 | pNow = gmtime(&now); |
| 1006 | 1006 | fprintf(out, "------------- %04d-%02d-%02d %02d:%02d:%02d UTC ------------\n", |
| 1007 | - pNow->tm_year+1900, pNow->tm_mon+1, pNow->tm_mday+1, | |
| 1007 | + pNow->tm_year+1900, pNow->tm_mon+1, pNow->tm_mday, | |
| 1008 | 1008 | pNow->tm_hour, pNow->tm_min, pNow->tm_sec); |
| 1009 | 1009 | va_start(ap, zFormat); |
| 1010 | 1010 | vfprintf(out, zFormat, ap); |
| 1011 | 1011 | fprintf(out, "\n"); |
| 1012 | 1012 | va_end(ap); |
| 1013 | 1013 |
| --- src/printf.c | |
| +++ src/printf.c | |
| @@ -1002,11 +1002,11 @@ | |
| 1002 | if( out==0 ) return; |
| 1003 | } |
| 1004 | now = time(0); |
| 1005 | pNow = gmtime(&now); |
| 1006 | fprintf(out, "------------- %04d-%02d-%02d %02d:%02d:%02d UTC ------------\n", |
| 1007 | pNow->tm_year+1900, pNow->tm_mon+1, pNow->tm_mday+1, |
| 1008 | pNow->tm_hour, pNow->tm_min, pNow->tm_sec); |
| 1009 | va_start(ap, zFormat); |
| 1010 | vfprintf(out, zFormat, ap); |
| 1011 | fprintf(out, "\n"); |
| 1012 | va_end(ap); |
| 1013 |
| --- src/printf.c | |
| +++ src/printf.c | |
| @@ -1002,11 +1002,11 @@ | |
| 1002 | if( out==0 ) return; |
| 1003 | } |
| 1004 | now = time(0); |
| 1005 | pNow = gmtime(&now); |
| 1006 | fprintf(out, "------------- %04d-%02d-%02d %02d:%02d:%02d UTC ------------\n", |
| 1007 | pNow->tm_year+1900, pNow->tm_mon+1, pNow->tm_mday, |
| 1008 | pNow->tm_hour, pNow->tm_min, pNow->tm_sec); |
| 1009 | va_start(ap, zFormat); |
| 1010 | vfprintf(out, zFormat, ap); |
| 1011 | fprintf(out, "\n"); |
| 1012 | va_end(ap); |
| 1013 |