We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a51b07c commit 0bb6483Copy full SHA for 0bb6483
system/I18n/Time.php
@@ -1121,12 +1121,11 @@ protected static function hasRelativeKeywords(string $time): bool
1121
1122
/**
1123
* Outputs a short format version of the datetime.
1124
- *
1125
- * @throws Exception
+ * The output is NOT localized intentionally.
1126
*/
1127
public function __toString(): string
1128
{
1129
- return IntlDateFormatter::formatObject($this->toDateTime(), $this->toStringFormat, $this->locale);
+ return $this->format('Y-m-d H:i:s');
1130
}
1131
1132
0 commit comments