diff --git a/src/bb-config-sample.php b/src/bb-config-sample.php
index 92c8dd17c..1d4bdb510 100755
--- a/src/bb-config-sample.php
+++ b/src/bb-config-sample.php
@@ -76,16 +76,16 @@ return [
/**
* Set default date format for localized strings.
*
- * @see http://php.net/manual/en/function.strftime.php
+ * @see https://www.php.net/manual/en/datetime.format.php
*/
- 'locale_date_format' => '%A, %d %B %G',
+ 'locale_date_format' => 'l, d F o',
/**
* Set default time format for localized strings.
*
- * @see http://php.net/manual/en/function.strftime.php
+ * @see https://www.php.net/manual/en/datetime.format.php
*/
- 'locale_time_format' => ' %T',
+ 'locale_time_format' => ' G:i:s',
/**
* Set location to store sensitive data.
diff --git a/src/bb-library/Box/TwigExtensions.php b/src/bb-library/Box/TwigExtensions.php
index 4527b5ca1..aa4e6df45 100644
--- a/src/bb-library/Box/TwigExtensions.php
+++ b/src/bb-library/Box/TwigExtensions.php
@@ -98,7 +98,7 @@ class Box_TwigExtensions extends AbstractExtension implements InjectionAwareInte
$locale_date_format = $this->di['config']['locale_date_format'];
$format = is_null($format) ? $locale_date_format : $format;
- return strftime($format, strtotime($time));
+ return date($format, strtotime($time));
}
public function twig_bb_datetime($time, $format = null)
@@ -107,7 +107,7 @@ class Box_TwigExtensions extends AbstractExtension implements InjectionAwareInte
$locale_time_format = $this->di['config']['locale_time_format'];
$format = is_null($format) ? $locale_date_format.$locale_time_format : $format;
- return strftime($format, strtotime($time));
+ return date($format, strtotime($time));
}
public function twig_ipcountryname_filter($value)
diff --git a/src/bb-modules/Invoice/Service.php b/src/bb-modules/Invoice/Service.php
index 7dffa3d8b..eb542e4b9 100644
--- a/src/bb-modules/Invoice/Service.php
+++ b/src/bb-modules/Invoice/Service.php
@@ -1303,12 +1303,11 @@ class Service implements InjectionAwareInterface
$html .= "";
$html .= '
Invoice number: ' . $invoice['serie_nr'] . '
'; - $html .= 'Invoice date: ' . $invoiceDate . '
'; - $html .= 'Due date: ' . strftime($localeDateFormat, strtotime($invoice['due_at'])) . '
'; + $html .= 'Invoice date: ' . date($localeDateFormat, strtotime($invoice['created_at'])) . '
'; + $html .= 'Due date: ' . date($localeDateFormat, strtotime($invoice['due_at'])) . '
'; $html .= 'Invoice status: ' . ucfirst($invoice['status']) . '
'; $html .= '