Skip to content

Commit

Permalink
Fix non-static call
Browse files Browse the repository at this point in the history
  • Loading branch information
technicalguru committed May 4, 2022
1 parent d3af52b commit 2ca3d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebApp/Component/DateRangeInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static function getPostValue($name, $timezoneId) {
return self::fromString($range);
}

public function fromString($range) {
public static function fromString($range) {
if ($range != NULL) {
list($fromS, $untilS) = explode(' - ', $range, 2);
$from = Date::createFromFormat(I18N::_('daterange_internal_format').' H:i:s', $fromS.' 00:00:00', $timezoneId);
Expand Down

0 comments on commit 2ca3d9a

Please # to comment.