Skip to content

Commit

Permalink
EMEA starts at UTC-1
Browse files Browse the repository at this point in the history
  • Loading branch information
galister committed Nov 23, 2024
1 parent 51174b6 commit 8d6ff1d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/config.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use std::i32;
use std::path::PathBuf;
use std::sync::Arc;

Expand Down Expand Up @@ -142,8 +141,8 @@ fn def_empty_vec_string() -> Vec<String> {
fn def_timezones() -> Vec<String> {
let offset = chrono::Local::now().offset().fix();

const EMEA: i32 = -1;
const APAC: i32 = 60 * 60 * 5 - 1;
const EMEA: i32 = -60 * 60; // UTC-1
const APAC: i32 = 5 * 60 * 60; // UTC+5

match offset.local_minus_utc() {
i32::MIN..EMEA => vec!["Europe/Paris".into(), "Asia/Tokyo".into()],
Expand Down

0 comments on commit 8d6ff1d

Please sign in to comment.