Skip to content
Snippets Groups Projects
Commit 29329c82 authored by Ahmad Alyasaki's avatar Ahmad Alyasaki
Browse files

Issue #3513363: convertToHijri function must get a timestamp to convert the date

parent e61b6245
No related branches found
No related tags found
No related merge requests found
......@@ -132,6 +132,10 @@ class HijriDualDateFormatter extends FormatterBase {
else {
// If it's a date string, create DateTime directly.
$date = new \DateTime($date_value['value'], new \DateTimeZone('UTC'));
// Convert the DateTime to a timestamp.
$timestamp = $date->getTimestamp();
$date_value['value'] = $timestamp;
}
// Ensure date is valid.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment