Some tiny changes

This commit is contained in:
djmaze 2020-12-09 22:42:04 +01:00
parent 21d3a9f401
commit 4321c11622
3 changed files with 3 additions and 3 deletions

2
dev/prototype.js vendored
View file

@ -71,7 +71,7 @@
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat
Date.prototype.fromNow = function() {
let unit = 'second',
value = (this.getTime() - Date.now()) / 1000,
value = Math.round((this.getTime() - Date.now()) / 1000),
t = [[60,'minute'],[3600,'hour'],[86400,'day'],[2628000,'month'],[31536000,'year']],
i = 5,
abs = Math.abs(value);

View file

@ -120,7 +120,7 @@ unlink($tar_destination);
echo "\n{$zip_destination} created\n{$tar_destination}.gz created\n";
// Docker build
if (readline("Build Docker image? (Y/N): ") === "Y") {
if ($options['docker'] || readline("Build Docker image? (Y/N): ") === "Y") {
copy($zip_destination, $docker_zip);
$docker = trim(`which docker`);

View file

@ -74,7 +74,7 @@ class Api
\MailSo\Config::$ImapTimeout =
(int) static::Config()->Get('labs', 'imap_timeout', 300);
\MailSo\Config::$BoundaryPrefix = '_RainLoop_';
\MailSo\Config::$BoundaryPrefix = '_SnappyMail_';
\MailSo\Config::$SystemLogger = static::Logger();