You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$safeDatetime = newself($datetime->format('Y-m-d H:i:s.u'), $datetime->getTimezone()); //we need to also update the wrapper to not break the operators '<' and '>'
39
-
$safeDatetime->innerDateTime = $datetime;
39
+
$safeDatetime->innerDateTime = $datetime;//to make sure we don't lose information because of the format().
40
40
return$safeDatetime;
41
41
}
42
42
43
+
//usefull if you need to switch back to regular DateTimeImmutable (for example when using DatePeriod)
0 commit comments