decode tests passing
diff --git a/src/qcbor_decode.c b/src/qcbor_decode.c
index 60331d0..409b746 100644
--- a/src/qcbor_decode.c
+++ b/src/qcbor_decode.c
@@ -3906,7 +3906,7 @@
       goto Done;
    }
 
-   if(pItem->uDataType != QCBOR_TYPE_DATE_EPOCH) {
+   if(pItem->uDataType != QCBOR_TYPE_DAYS_EPOCH) {
       uErr = DecodeDaysEpoch(pItem);
       if(uErr != QCBOR_SUCCESS) {
          goto Done;