Skip to content

Commit 9260d98

Browse files
committed
Fix
1 parent 5a69bc6 commit 9260d98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ext.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,6 @@ export async function activate(context: flashpoint.ExtensionContext) {
8181
};
8282

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

0 commit comments

Comments
 (0)