We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 983ef5e commit 84b4baeCopy full SHA for 84b4bae
src/Helpers/DateTimeHelper.php
@@ -344,4 +344,11 @@ public static function wp_timezone()
344
345
return new DateTimeZone(self::wp_timezone_string());
346
}
347
+
348
+ public function getCurrentDateTime()
349
+ {
350
+ $dateTime = new DateTime('now', self::wp_timezone());
351
352
+ return $dateTime->format($this->_currentFormat);
353
+ }
354
0 commit comments