Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
maintain string type
  • Loading branch information
archmoj committed Jun 24, 2021
commit 4caa5d8a95254ee3ef5329c1e0b551246e0c4474
8 changes: 4 additions & 4 deletions src/lib/dates.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,10 +378,10 @@ exports.cleanDate = function(v, dflt, calendar) {
var fracMatch = /%\d?f/g;
var halfYearMatch = /%h/g;
var quarterToHalfYear = {
'1': 1,
'2': 1,
'3': 2,
'4': 2,
'1': '1',
'2': '1',
'3': '2',
'4': '2',
};
function modDateFormat(fmt, x, formatter, calendar) {
fmt = fmt.replace(fracMatch, function(match) {
Expand Down