@bytebrand/fe-ui-core 4.2.185 → 4.2.186

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core",
3
- "version": "4.2.185",
3
+ "version": "4.2.186",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -604,14 +604,13 @@ export const getUnixTimestampAfterTwoWeeks = () => {
604
604
  * @returns {number} Return the number of days as the result
605
605
  */
606
606
  export const convertUnixTimestampToDays = (unixTimestamp: number) => {
607
- const milliseconds = unixTimestamp * 1000;
607
+ const milliseconds = Number(unixTimestamp * 1000);
608
608
  const date = new Date(milliseconds);
609
609
  const currentDate = new Date();
610
610
 
611
611
  // Calculate the difference between the current date and the obtained date
612
612
  const timeDifference = currentDate.getTime() - date.getTime();
613
613
  const daysDifference = -Math.floor(timeDifference / (1000 * 3600 * 24));
614
-
615
614
  return daysDifference;
616
615
  };
617
616