Skip to content

Commit

Permalink
More lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomcariello committed Sep 3, 2024
1 parent 3c87d9b commit da8d571
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions web/js/components/sidebar/charting-mode-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,13 +296,11 @@ function ChartingModeOptions(props) {
*
* @returns {integer} | Epoch time representation of the provided string
*/
function convertToMsSinceEpoch(dateString) {
const date = new Date(dateString);
const millisecondsSinceEpoch = date.getTime(); // Time in milliseconds since Jan 1, 1970
// const millisecondsPerYear = 1000 * 60 * 60 * 24 * 365.25;
// const epochYear = timeDifference / millisecondsPerYear;
return millisecondsSinceEpoch;
}
// function convertToMsSinceEpoch(dateString) {
// const date = new Date(dateString);
// const millisecondsSinceEpoch = date.getTime(); // Time in milliseconds since Jan 1, 1970
// return millisecondsSinceEpoch;
// }

/**
* Returns the EGIS request parameters based on the provided layer
Expand Down

0 comments on commit da8d571

Please sign in to comment.