mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
1163. [func] isc_time_formattimestamp() will now reports the year.
The format matches BIND 8 date stamp.
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -1,3 +1,5 @@
|
||||
1163. [func] isc_time_formattimestamp() will now reports the year.
|
||||
|
||||
1162. [bug] The allow-notify option was not accepted in slave
|
||||
zone statements.
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: time.h,v 1.28 2001/09/20 06:50:08 marka Exp $ */
|
||||
/* $Id: time.h,v 1.29 2001/12/17 02:55:06 marka Exp $ */
|
||||
|
||||
#ifndef ISC_TIME_H
|
||||
#define ISC_TIME_H 1
|
||||
@@ -284,7 +284,7 @@ void
|
||||
isc_time_formattimestamp(const isc_time_t *t, char *buf, unsigned int len);
|
||||
/*
|
||||
* Format the time 't' into the buffer 'buf' of length 'len',
|
||||
* using a format like "Aug 30 04:06:47.997" and the local time zone.
|
||||
* using a format like "30-Aug-2000 04:06:47.997" and the local time zone.
|
||||
* If the text does not fit in the buffer, the result is indeterminate,
|
||||
* but is always guaranteed to be null terminated.
|
||||
*
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: time.c,v 1.43 2001/11/30 01:59:48 gson Exp $ */
|
||||
/* $Id: time.c,v 1.44 2001/12/17 02:55:05 marka Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -402,7 +402,7 @@ isc_time_formattimestamp(const isc_time_t *t, char *buf, unsigned int len) {
|
||||
REQUIRE(len > 0);
|
||||
|
||||
now = (time_t) t->seconds;
|
||||
flen = strftime(buf, len, "%b %d %X", localtime(&now));
|
||||
flen = strftime(buf, len, "%d-%b-%Y %X", localtime(&now));
|
||||
INSIST(flen < len);
|
||||
if (flen != 0)
|
||||
snprintf(buf + flen, len - flen,
|
||||
|
Reference in New Issue
Block a user