Verified Commit ceb3cef6 authored by Aral Balkan's avatar Aral Balkan
Browse files

Header now displays correctly on all versions/builds

parent a3b404e3
...@@ -115,7 +115,7 @@ class Site { ...@@ -115,7 +115,7 @@ class Site {
static binaryVersionToHumanReadableDateString (binaryVersion) { static binaryVersionToHumanReadableDateString (binaryVersion) {
// Is this the dummy version that signals a development build? // Is this the dummy version that signals a development build?
if (binaryVersion === '20000101000000') { if (binaryVersion === '20000101000000') {
return 'Dev' return 'Unbuilt (development version)'
} }
const m = moment(binaryVersion, 'YYYYMMDDHHmmss') const m = moment(binaryVersion, 'YYYYMMDDHHmmss')
return `${m.format('MMMM Do, YYYY')} at ${m.format('HH:mm:ss')}` return `${m.format('MMMM Do, YYYY')} at ${m.format('HH:mm:ss')}`
...@@ -194,7 +194,7 @@ class Site { ...@@ -194,7 +194,7 @@ class Site {
this.readAndCacheManifest() this.readAndCacheManifest()
let message = [ let message = [
this.releaseChannel === this.RELEASE_CHANNEL.release ? `\n${prefix1}` : `\n${prefix1}Site.js\n\n` this.releaseChannel === this.RELEASE_CHANNEL.release || this.binaryVersion === '20000101000000' /* (dev) */ ? `\n${prefix1}` : `\n${prefix1}Site.js\n\n`
].concat(this.releaseChannelFormattedForConsole).concat([ ].concat(this.releaseChannelFormattedForConsole).concat([
`${prefix2}Created ${clr(this.humanReadableBinaryVersion, 'green')}\n`, `${prefix2}Created ${clr(this.humanReadableBinaryVersion, 'green')}\n`,
'\n', '\n',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment