Skip to content

Commit

Permalink
Merge pull request #2546 from atjn/meridians-force
Browse files Browse the repository at this point in the history
Support forced meridians
  • Loading branch information
gfwilliams authored Aug 27, 2024
2 parents 4b413bf + b3add18 commit 7000f5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/js/banglejs/locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ exports = { name : "system", currencySym:"£",
distance : (m,dp) => (m<1000)?round(m,dp)+"m":round(m/1000,dp)+"km", // meters to "123m" or "1.2km" depending on size
speed : (s,dp) => round(s/1.60934,dp)+"mph",// kph to "123mph"
temp : (t,dp) => round(t,dp)+"'C", // degrees C to degrees C
meridian: d => is12Hours() ? (d.getHours() <= 12) ? "am":"pm" : "", // Date to am/pm
meridian: (d,force) => (force||is12Hours()) ? (d.getHours() <= 12) ? "am":"pm" : "", // Date to am/pm
is12Hours,
};
2 changes: 1 addition & 1 deletion libs/js/banglejs/locale.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7000f5d

Please sign in to comment.