aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/DateTimeFormatterTest.php
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2023-07-24 18:41:22 +0200
committerDaniel <mail@danielkesselberg.de>2023-07-27 13:57:02 +0200
commit68eecca4d4cf9c4a9ebda1db064a1ef789d6affb (patch)
tree6f4298f022f96979be485964a5fb379de3a7c499 /tests/lib/DateTimeFormatterTest.php
parent06248cda0a21180ee732f8927b471da1f56f2dfe (diff)
downloadnextcloud-server-68eecca4d4cf9c4a9ebda1db064a1ef789d6affb.tar.gz
nextcloud-server-68eecca4d4cf9c4a9ebda1db064a1ef789d6affb.zip
chore: update expected results for CLDR 42
Punic 3.8.0 / CLDR 42 added a narrow no-break space unicode character for the time formats and a new default pattern for datetime. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'tests/lib/DateTimeFormatterTest.php')
-rw-r--r--tests/lib/DateTimeFormatterTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/DateTimeFormatterTest.php b/tests/lib/DateTimeFormatterTest.php
index 2ca880ec132..71d98ba7581 100644
--- a/tests/lib/DateTimeFormatterTest.php
+++ b/tests/lib/DateTimeFormatterTest.php
@@ -163,8 +163,8 @@ class DateTimeFormatterTest extends TestCase {
public function formatDateTimeData() {
return [
- [1350129205, null, 'October 13, 2012 at 11:53:25 AM GMT+0'],
- [1350129205, new \DateTimeZone('Europe/Berlin'), 'October 13, 2012 at 1:53:25 PM GMT+2'],
+ [1350129205, null, "October 13, 2012, 11:53:25\xE2\x80\xAFAM UTC"],
+ [1350129205, new \DateTimeZone('Europe/Berlin'), "October 13, 2012, 1:53:25\xE2\x80\xAFPM GMT+2"],
];
}
@@ -175,7 +175,7 @@ class DateTimeFormatterTest extends TestCase {
$this->assertEquals($expected, (string) $this->formatter->formatDateTime($timestamp, 'long', 'long', $timeZone));
}
-
+
public function testFormatDateWithInvalidTZ() {
$this->expectException(\Exception::class);