Compare commits

...

6 Commits

3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -196,7 +196,7 @@ class MDTwigExtension extends AbstractExtension {
\IntlDateFormatter::NONE
);
$df->setPattern('d-LLL-yy');
$df->setPattern('dd-LLL-yy');
$d = $df->format(new \DateTime($value));
return strtoupper(str_replace(".", "", $d));
}
+6
View File
@@ -113,4 +113,10 @@ class Request {
}
}
/**
* Change or set the value of a parameter.
*/
public function setQueryParameter(string $key, string $value = "") {
$this->post[$key] = $value;
}
}
+1 -1
View File
@@ -63,7 +63,7 @@ class TwigRender {
/**
* Add global variable(s) to template.
*
* @return string
* @return object
*/
public function addGlobals($name, $value) : self {
$this->twig->addGlobal($name, $value);