dateString TODO:
diff --git a/inc/qcbor/qcbor_decode.h b/inc/qcbor/qcbor_decode.h
index bf4a042..351220a 100644
--- a/inc/qcbor/qcbor_decode.h
+++ b/inc/qcbor/qcbor_decode.h
@@ -240,7 +240,8 @@
/** Type for [RFC 3339] (https://tools.ietf.org/html/rfc3339) date
* string, possibly with time zone. Data is in @c val.string . Note this
* was previously in @c val.dateString, however this is the same as
- * val.string being the same type in same union. */
+ * val.string being the same type in same union. val.dateString will
+ * be deprecated.. */
#define QCBOR_TYPE_DATE_STRING 11
/** Type for integer seconds since Jan 1970 + floating-point
* fraction. Data is in @c val.epochDate */
@@ -440,7 +441,7 @@
int64_t epochDays;
/** No longer used. Was the value for @ref QCBOR_TYPE_DATE_STRING,
- * but now that value is in @c string. TODO: finish writing this.*/
+ * but now that value is in @c string. This will be removed in QCBOR 2.0. */
UsefulBufC dateString;
/** The value for @c uDataType @ref QCBOR_TYPE_POSBIGNUM and
diff --git a/test/qcbor_decode_tests.c b/test/qcbor_decode_tests.c
index 05d2466..bc91b72 100644
--- a/test/qcbor_decode_tests.c
+++ b/test/qcbor_decode_tests.c
@@ -2449,7 +2449,7 @@
return -1;
}
if(Item.uDataType != QCBOR_TYPE_DATE_STRING ||
- UsefulBufCompareToSZ(Item.val.dateString, "1985-04-12")){
+ UsefulBufCompareToSZ(Item.val.string, "1985-04-12")){
return -2;
}