Skip to content

Commit

Permalink
fix: remove redundant militaryTime
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Nov 21, 2019
1 parent f229842 commit fda0ba2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/createFormats.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const militaryTimeFormats = [
.map((combination) => {
return {
dateFnsFormat: combination.join(''),
militaryTime: true,
timeFormat: 24,
};
}),
Expand Down Expand Up @@ -52,7 +51,6 @@ const civilianTimeFormats = [
.map((combination) => {
return {
dateFnsFormat: combination.join(''),
militaryTime: false,
timeFormat: 12,
};
}),
Expand All @@ -71,7 +69,6 @@ const civilianTimeFormatsWithoutMinutes = [
.map((combination) => {
return {
dateFnsFormat: combination.join(''),
militaryTime: false,
timeFormat: 12,
};
}),
Expand All @@ -82,7 +79,6 @@ export default () => {
// HH.mm.ss is unsafe because it can be confused with date format.
{
dateFnsFormat: 'HH:mm:ss',
militaryTime: true,
timeFormat: 24,
},
...militaryTimeFormats,
Expand Down

0 comments on commit fda0ba2

Please sign in to comment.