From cb75e691220e0b1052e45d39e9b329df6c2ec791 Mon Sep 17 00:00:00 2001 From: harttle Date: Mon, 24 Oct 2016 02:00:57 +0800 Subject: [PATCH] fix strftime test --- test/util/strftime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/util/strftime.js b/test/util/strftime.js index bcc404450..8653bf0df 100644 --- a/test/util/strftime.js +++ b/test/util/strftime.js @@ -13,7 +13,7 @@ describe('util/strftime', function() { expect(t(now, '%m/%d/%Y')).to.equal(date); }); it('should format locale date string', function() { - var time = now.toLocaleTimeString({ + var time = now.toLocaleTimeString('en-US', { hour12: false }); expect(t(now, '%H:%M:%S')).to.equal(time);