]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/DateTimeFormat.php
Merge pull request #10813 from tobiasd/20211003-lengthcounter
[friendica.git] / src / Util / DateTimeFormat.php
index 07590bac0a0a60f985f1999ac0a39afccab15746..a1eb749948fcea4ea8047923942411a43dd71b5d 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -31,9 +31,10 @@ use Exception;
  */
 class DateTimeFormat
 {
-       const ATOM = 'Y-m-d\TH:i:s\Z';
+       const ATOM  = 'Y-m-d\TH:i:s\Z';
        const MYSQL = 'Y-m-d H:i:s';
-       const HTTP = 'D, d M Y H:i:s \G\M\T';
+       const HTTP  = 'D, d M Y H:i:s \G\M\T';
+       const JSON  = 'Y-m-d\TH:i:s.v\Z';
 
        /**
         * convert() shorthand for UTC.