Skip to content

Commit

Permalink
Merge pull request #573 from desci-labs/prepub-future-pub-bug
Browse files Browse the repository at this point in the history
Prepub futuristic date bug
  • Loading branch information
kadamidev authored Oct 15, 2024
2 parents 9a96898 + 2b02d34 commit 8a58fc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion desci-server/src/services/PublishPackage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,10 @@ class PublishPackageService {
let nodeUuid = ensureUuidEndsWithDot(node.uuid);
nodeUuid = nodeUuid.slice(0, -1);
// const paddedTimestamp = unixTimestamp.padEnd(13, '0');

const publishTime = demoMode
? Date.now().toString().slice(0, 10)
: await publishServices.retrieveBlockTimeByManifestCid(nodeUuid, usedManifestCid);
: (await publishServices.retrieveBlockTimeByManifestCid(nodeUuid, usedManifestCid)).slice(0, 10);

const publishDate = PublishPackageService.convertUnixTimestampToDate(publishTime);
const authors = manifest.authors?.map((author) => author.name);
Expand Down

0 comments on commit 8a58fc3

Please sign in to comment.