Skip to content

Commit 4b29c24

Browse files
vsavkinFrozenPandaz
authored andcommitted
fix(core): return current nx init date when no git available yet
(cherry picked from commit 6fdca3d)
1 parent e779d69 commit 4b29c24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nx/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function getNxInitDate(): string | null {
4444
const nxInitDate = new Date(nxInitIso);
4545
return nxInitDate.toISOString();
4646
} catch (e) {
47-
return null;
47+
return new Date().toISOString();
4848
}
4949
}
5050

0 commit comments

Comments
 (0)