Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Commit

Permalink
date bug fix 4
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetilhn committed Feb 28, 2023
1 parent e2dceb8 commit 75b9ca5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion interfaces/earthquake.interface.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
interface EarthquakeInterface {
ID: string;
Date: Date;
Date: string;
Magnitude: number;
Type: string;
Latitude: string;
Expand Down
2 changes: 1 addition & 1 deletion server/api/earthquakes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default defineEventHandler(async (event) => {
] = $(el).find("td");
data.push({
ID: $(ID).text(),
Date: new Date($(CreatedDate).text()),
Date: $(CreatedDate).text(),
Latitude: $(Latitude).text(),
Longitude: $(Longitude).text(),
Depth: Number($(Depth).text()),
Expand Down

0 comments on commit 75b9ca5

Please sign in to comment.