Merge pull request #7306 from AlexSCorey/6863-CopyProjectsAndInventories

Removes extra spacing from timeOfDay function

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot] 2020-06-10 16:06:20 +00:00 committed by GitHub
commit 3818fb9b69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,8 +24,8 @@ export function timeOfDay() {
const second = prependZeros(date.getSeconds());
const time =
hour > 12
? `${hour - 12}:${minute} :${second} PM`
: `${hour}:${minute}:${second}`;
? `${hour - 12}:${minute}:${second} PM`
: `${hour}:${minute}:${second} AM`;
return time;
}