Skip to content

Commit

Permalink
Merge pull request #8 from Aerilym/aerilym_fix_timezone_check_logic
Browse files Browse the repository at this point in the history
Aerilym fix timezone check logic
  • Loading branch information
Aerilym authored Sep 6, 2022
2 parents dfa9875 + eefe475 commit 3d95e87
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "photoprism-helper",
"version": "1.0.1",
"version": "1.0.2",
"description": "An unofficial companion tool created for use alongside PhotoPrism to enable api endpoints and automation.",
"main": "build/api.js",
"scripts": {
Expand All @@ -12,9 +12,9 @@
"start:dev": "nodemon",
"start:prd": "node build/api.js",
"reinstall:wa": "npm remove winston-axios && npm install winston-axios",
"release:patch": "npm run prepare && npm version patch",
"release:minor": "npm run prepare && npm version patch",
"release:major": "npm run prepare && npm version patch"
"release:patch": "npm run build:prep && npm version patch",
"release:minor": "npm run build:prep && npm version patch",
"release:major": "npm run build:prep && npm version patch"
},
"keywords": [
"PhotoPrism",
Expand Down
4 changes: 1 addition & 3 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ export const logConfig: LoggerConfig = {
export const configMessages: string[] = [];

// Validate and set the timezone for the application
if (isTimezone(optionsConfig.timezone, true)) {
optionsConfig.timezone;
} else {
if (!isTimezone(optionsConfig.timezone, true)) {
configMessages.push('Timezone is not valid: ' + optionsConfig.timezone);
optionsConfig.timezone = 'Australia/Melbourne';
}
Expand Down

0 comments on commit 3d95e87

Please sign in to comment.