Skip to content

Commit

Permalink
Fix Flight Time formatting in Tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
velocity23 committed Aug 26, 2023
1 parent 427aa80 commit ed03cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/tailwind.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ function resizeTextarea(el) {
function formatFlightTime() {
const val = typeof this == 'string' ? parseInt(this) : this;
const hours = Math.floor(val / 3600);
const minutes = (val % 3600) / 60;
const minutes = Math.floor((val % 3600) / 60);
return `${hours.toString().padStart(2, '0')}:${minutes
.toString()
.padStart(2, '0')}`;
Expand Down

0 comments on commit ed03cdc

Please sign in to comment.