Skip to content

Commit

Permalink
[DDW-637] Fix broken Download logs
Browse files Browse the repository at this point in the history
  • Loading branch information
thedanheller committed May 16, 2019
1 parent 9c9c34e commit f6fcaed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/common/utils/files.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export const generateFileNameWithTimestamp = (props?: Props) => {
}; };
let z = ''; let z = '';
if (isUTC === true) { if (isUTC === true) {
if (!Object.prototype.hasOwnProperty.call(props, 'date')) date = date.utc(); if (!props || !Object.prototype.hasOwnProperty.call(props, 'date'))
date = date.utc();
z = 'Z'; z = 'Z';
} }
return `${prefix}-${`${date.format('YYYY-MM-DDTHHmmss.0SSS')}${z}`}${ return `${prefix}-${`${date.format('YYYY-MM-DDTHHmmss.0SSS')}${z}`}${
Expand Down

0 comments on commit f6fcaed

Please sign in to comment.