Screenshot of code listing. Relevant bit: Date.UTC( Number(_.slice(0,4)), // YYYY Number(_.slice(4,6)) - 1, // MM (0 - 11, because fuck you, that’s why.) Number(_.slice(6,8)), // DD Whole listing: versionStampToDate() { // The version stamp is already in UTC so we // create the Date object using the UTC timestamp. const _ = this.versionStamp.toString() return new Date( Date.UTC( Number(_.slice(0,4)), // YYYY Number(_.slice(4,6)) - 1, // MM (0 - 11, because fuck you, that’s why.) Number(_.slice(6,8)), // DD Number(_.slice(8,10)), // HH Number(_.slice(10,12)), // MM Number(_.slice(12,14)) // SS ) ) }
https://s3-eu-central-1.amazonaws.com/mastodon-aral/media_attachments/files/111/663/322/934/208/652/original/1a4cf5c9589134c9.png