zotero/dataserver

Invalid format suggestion in error response when updating accessDate?

tnajdek opened this issue · 0 comments

dataserver/model/Items.inc.php

Lines 2445 to 2451 in 7a9477c

if ($apiVersion >= 3
&& $val !== ''
&& $val != 'CURRENT_TIMESTAMP'
&& !Zotero_Date::isSQLDate($val)
&& !Zotero_Date::isSQLDateTime($val)
&& !Zotero_Date::isISO8601($val)) {
throw new Exception("'$key' must be in ISO 8601 or UTC 'YYYY-MM-DD[ hh-mm-dd]' format or 'CURRENT_TIMESTAMP' ($val)", Z_ERROR_INVALID_INPUT);

Shouldn't that be YYYY-MM-DD[ hh:mm:ss]?