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 31ae195 commit e856118Copy full SHA for e856118
system/I18n/Time.php
@@ -1122,12 +1122,11 @@ protected static function hasRelativeKeywords(string $time): bool
1122
1123
/**
1124
* Outputs a short format version of the datetime.
1125
- *
1126
- * @throws Exception
+ * The output is NOT localized intentionally.
1127
*/
1128
public function __toString(): string
1129
{
1130
- return IntlDateFormatter::formatObject($this->toDateTime(), $this->toStringFormat, $this->locale);
+ return $this->format('Y-m-d H:i:s');
1131
}
1132
1133
0 commit comments