Skip to content

Commit

Permalink
build(android): use same timestamp format in all build processes
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtcoolguy committed Jan 8, 2020
1 parent 6153f79 commit e7db6cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions android/titanium/prebuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const util = require('util');
const exec = util.promisify(require('child_process').exec); // eslint-disable-line security/detect-child-process
const fs = require('fs-extra');
const glob = util.promisify(require('glob'));
const moment = require('moment');
const path = require('path');
const timestamp = require('../../build/lib/utils').timestamp;

// Determine if we're running on a Windows machine.
const isWindows = (process.platform === 'win32');
Expand Down Expand Up @@ -83,7 +83,7 @@ async function generateBuildProperties() {

let buildTimestamp = process.env.TI_SDK_BUILD_TIMESTAMP;
if (!buildTimestamp) {
buildTimestamp = moment().format('YYYY/MM/DD HH:mm');
buildTimestamp = timestamp();
}

// Create the "build.properties" content.
Expand Down

0 comments on commit e7db6cb

Please sign in to comment.