Skip to content

Commit 186da02

Browse files
authored
test(bundle): Use different Date constructor to get a local date (#576)
1 parent 30afac9 commit 186da02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fluent-bundle/test/arguments_test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ suite('Variables', function() {
215215
});
216216

217217
test('can be a FluentDateTime', function(){
218-
const arg = new FluentDateTime(new Date('2016-09-29'), {weekday: "long"});
218+
const localDate = new Date(2016, 8, 29, 12);
219+
const arg = new FluentDateTime(localDate, {weekday: "long"});
219220
const msg = bundle.getMessage('foo');
220221
const val = bundle.formatPattern(msg.value, {arg}, errs);
221222
assert.strictEqual(val, 'Thursday');

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy