{"id":1178,"date":"2020-02-06T12:18:01","date_gmt":"2020-02-06T12:18:01","guid":{"rendered":"https:\/\/sdf-docs.mansystems.com\/docs\/acr-rules\/reliability\/monthvsminute\/"},"modified":"2020-03-20T08:44:58","modified_gmt":"2020-03-20T08:44:58","slug":"monthvsminute","status":"publish","type":"docs","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/reliability\/monthvsminute","title":{"rendered":"MM and mm tokens should be used correctly in parse\/format date-time functions"},"content":{"rendered":"\n<p>Released in version 1.5 (14 February 2020)<\/p>\n\n\n\n<p>&#8216;This is likely a bug and should be changed. <br>Lowercase &#8220;mm&#8221; stands for a minute in an hour, but uppercase &#8220;MM&#8221; stands for the month of the year.<br>They should not be mixed. Months should be used together with year or day while minute should be used together with hour.&#8217;<\/p>\n\n\n\n<p><strong>Noncompliant example:<\/strong><\/p>\n\n\n\n<p> <code>parseDateTime('2015-05-21', 'yyyy-mm-dd')<\/code><\/p>\n\n\n\n<p> <code>parseDateTime('13:37', 'HH:MM')<\/code><\/p>\n","protected":false},"featured_media":0,"parent":97,"menu_order":16,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-1178","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1178"}],"collection":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1178"}],"version-history":[{"count":3,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1178\/revisions"}],"predecessor-version":[{"id":1204,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1178\/revisions\/1204"}],"up":[{"embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/97"}],"next":[{"title":"Objects should not be dereferenced after failing an empty check","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/reliability\/emptycheckdereference","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/837"}],"prev":[{"title":"Lists should not be modified during iteration","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/reliability\/concurentmodificationexception","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1300"}],"wp:attachment":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1178"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=1178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}