Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
colin969 committed Apr 19, 2024
1 parent 5a69bc6 commit 9260d98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,6 @@ export async function activate(context: flashpoint.ExtensionContext) {
};

export function getGameDataFilename(data: flashpoint.GameData) {
return `${data.gameId}-${(new Date(data.dateAdded)).getTime()}.zip`;
const cleanDate = (data.dateAdded as unknown as string).includes('T') ? data.dateAdded : `${data.dateAdded} +0000 UTC`;
return `${data.gameId}-${(new Date(cleanDate)).getTime()}.zip`;
}

0 comments on commit 9260d98

Please sign in to comment.