@@ -121,7 +121,7 @@ bool v16::TransactionStore::serializeSendStatus(Clock& clock, SendStatus& status
121121 }
122122
123123 if (status.getAttemptTime ().isDefined ()) {
124- char attemptTime [MO_JSONDATE_SIZE ];
124+ char attemptTime [MO_INTERNALTIME_SIZE ];
125125 if (!clock.toInternalString (status.getAttemptTime (), attemptTime, sizeof (attemptTime))) {
126126 return false ;
127127 }
@@ -174,7 +174,7 @@ bool v16::TransactionStore::serializeTransaction(Clock& clock, Transaction& tx,
174174 sessionState[" deauthorized" ] = true ;
175175 }
176176 if (tx.getBeginTimestamp ().isDefined ()) {
177- char timeStr [MO_JSONDATE_SIZE ] = {' \0 ' };
177+ char timeStr [MO_INTERNALTIME_SIZE ] = {' \0 ' };
178178 if (!clock.toInternalString (tx.getBeginTimestamp (), timeStr, sizeof (timeStr))) {
179179 return false ;
180180 }
@@ -198,7 +198,7 @@ bool v16::TransactionStore::serializeTransaction(Clock& clock, Transaction& tx,
198198 }
199199
200200 if (tx.getStartTimestamp ().isDefined ()) {
201- char startTimeStr [MO_JSONDATE_SIZE ] = {' \0 ' };
201+ char startTimeStr [MO_INTERNALTIME_SIZE ] = {' \0 ' };
202202 if (!clock.toInternalString (tx.getStartTimestamp (), startTimeStr, sizeof (startTimeStr))) {
203203 return false ;
204204 }
@@ -224,7 +224,7 @@ bool v16::TransactionStore::serializeTransaction(Clock& clock, Transaction& tx,
224224 }
225225
226226 if (tx.getStopTimestamp ().isDefined ()) {
227- char stopTimeStr [MO_JSONDATE_SIZE ] = {' \0 ' };
227+ char stopTimeStr [MO_INTERNALTIME_SIZE ] = {' \0 ' };
228228 if (!clock.toInternalString (tx.getStopTimestamp (), stopTimeStr, sizeof (stopTimeStr))) {
229229 return false ;
230230 }
@@ -419,7 +419,7 @@ bool v201::TransactionStoreEvse::serializeTransaction(Transaction& tx, JsonObjec
419419 }
420420
421421 if (tx.beginTimestamp .isDefined ()) {
422- char timeStr [MO_JSONDATE_SIZE ] = {' \0 ' };
422+ char timeStr [MO_INTERNALTIME_SIZE ] = {' \0 ' };
423423 if (!context.getClock ().toInternalString (tx.beginTimestamp , timeStr, sizeof (timeStr))) {
424424 MO_DBG_ERR (" serialization error" );
425425 return false ;
@@ -428,7 +428,7 @@ bool v201::TransactionStoreEvse::serializeTransaction(Transaction& tx, JsonObjec
428428 }
429429
430430 if (tx.startTimestamp .isDefined ()) {
431- char timeStr [MO_JSONDATE_SIZE ] = {' \0 ' };
431+ char timeStr [MO_INTERNALTIME_SIZE ] = {' \0 ' };
432432 if (!context.getClock ().toInternalString (tx.startTimestamp , timeStr, sizeof (timeStr))) {
433433 MO_DBG_ERR (" serialization error" );
434434 return false ;
@@ -623,7 +623,7 @@ bool v201::TransactionStoreEvse::serializeTransactionEvent(TransactionEventData&
623623 }
624624
625625 if (txEvent.timestamp .isDefined ()) {
626- char timeStr [MO_JSONDATE_SIZE ] = {' \0 ' };
626+ char timeStr [MO_INTERNALTIME_SIZE ] = {' \0 ' };
627627 if (!context.getClock ().toInternalString (txEvent.timestamp , timeStr, sizeof (timeStr))) {
628628 return false ;
629629 }
@@ -678,7 +678,7 @@ bool v201::TransactionStoreEvse::serializeTransactionEvent(TransactionEventData&
678678 txEventJson[" attemptNr" ] = txEvent.attemptNr ;
679679
680680 if (txEvent.attemptTime .isDefined ()) {
681- char timeStr [MO_JSONDATE_SIZE ] = {' \0 ' };
681+ char timeStr [MO_INTERNALTIME_SIZE ] = {' \0 ' };
682682 if (!context.getClock ().toInternalString (txEvent.attemptTime , timeStr, sizeof (timeStr))) {
683683 return false ;
684684 }
0 commit comments