]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1163. [func] isc_time_formattimestamp() will now reports the year.
authorMark Andrews <marka@isc.org>
Mon, 17 Dec 2001 02:55:06 +0000 (02:55 +0000)
committerMark Andrews <marka@isc.org>
Mon, 17 Dec 2001 02:55:06 +0000 (02:55 +0000)
The format matches BIND 8 date stamp.

CHANGES
lib/isc/unix/include/isc/time.h
lib/isc/unix/time.c

diff --git a/CHANGES b/CHANGES
index 895b26d53f3644e50a6c7d4058c2b6966eae13df..aa7cb53a29f462c0a95addc2b7c83be63f074ef6 100644 (file)
--- a/CHANGES
+++ b/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.
 
index b4a756bcc04025c998341d53419289b7069e22af..ca4aef2f3090cbeb0532ca1cc3b5212611554913 100644 (file)
@@ -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.
  *
index 6a0f2e932313ea6841d559dabfd0da6090e8997c..6d4be948ba7aeb4c192ff96ee75c9f0c4364c447 100644 (file)
@@ -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,