feat(Timezone Converter): add POSIX string filterable list

Fix #579
This commit is contained in:
ShareVB committed 2026-09-27 12:45:47 +02:00
1 parent 641fa857b4
commit 7fc4b79172
4 files changed
+654 -42

No files matched your search

+56 -41
View File
@@ -3690,6 +3690,11 @@ tools:
title-country-to-timezones: Country to Timezones
label-country: Country
title-timezones-to-countries: Timezones to Countries
title-posix-timezones: Timezones POSIX Strings
search-posix-timezones: Enter a timezone or POSIX string to search
tag-no-results: No results
tag-timezone: Timezone
tag-posix: POSIX String
torrent-to-magnet:
title: Torrent to Magnet
description: Convert a torrent file to a Magnet url
@@ -9942,12 +9947,14 @@ tools:
tools: Tools
restic-command-generator:
title: Restic Command Generator
description: "Generate restic CLI commands to restore a Backrest or plain restic
repository: a whole snapshot, only some files, or a browsable mount."
description: >-
Generate restic CLI commands to restore a Backrest or plain restic
repository: a whole snapshot, only some files, or a browsable mount.
texts:
intro: "Generator only: nothing runs here and nothing you type leaves your
browser. Describe your repository, pick what you need to recover, and copy
the shell snippet."
intro: >-
Generator only: nothing runs here and nothing you type leaves your
browser. Describe your repository, pick what you need to recover, and
copy the shell snippet.
title-repository: Repository
label-backend: Backend
backend-s3: S3 compatible (Backblaze B2, MinIO, Wasabi, AWS…)
@@ -9973,13 +9980,13 @@ tools:
label-container: Container
label-raw-repository: Repository URI
label-repository-mode: Repository passed as
repository-flag: -r flag on every command
repository-flag: '-r flag on every command'
repository-env: RESTIC_REPOSITORY environment variable
label-repository-uri: Repository URI
label-password: Repository password
password-prompt: Prompt for it in the shell (read -rs, stays out of the history)
password-file: --password-file
password-command: --password-command
password-file: '--password-file'
password-command: '--password-command'
password-placeholder: RESTIC_PASSWORD export with a placeholder
password-none: Already set in my environment
label-password-file: Password file
@@ -9989,9 +9996,9 @@ tools:
credentials-placeholder: Export them with placeholders
credentials-none: Already set in my environment
label-account-id: Key ID / account name
hint-secrets: 'No secret is ever put in the generated command: the prompt
options read them into your shell with "read -rs" so they stay out of your
history.'
hint-secrets: >-
No secret is ever put in the generated command: the prompt options read
them into your shell with "read -rs" so they stay out of your history.
title-operation: What do you want to do?
operation-restore: restore — write files from a snapshot back to disk
operation-dump: dump — stream one file or folder out of a snapshot
@@ -10013,16 +10020,17 @@ tools:
placeholder-tag: manual
label-filter-paths: Paths
placeholder-path: /home/me/documents
hint-tags: Backrest tags the snapshots it creates with "plan:" and
"created-by:" followed by the plan and the instance IDs. Tags inside a
single --tag are ANDed while repeated --tag flags are ORed, so the plan
and the instance stay in one flag and each extra tag gets its own.
hint-tags: >-
Backrest tags the snapshots it creates with "plan:" and "created-by:"
followed by the plan and the instance IDs. Tags inside a single --tag
are ANDed while repeated --tag flags are ORed, so the plan and the
instance stay in one flag and each extra tag gets its own.
title-restore-options: Restore options
label-target: Target directory
label-include: Restore only these paths or patterns
placeholder-include: /home/me/documents/**/*.pdf
label-exclude: Exclude these paths or patterns
placeholder-exclude: "**/node_modules"
placeholder-exclude: '**/node_modules'
label-overwrite: Overwrite existing files
overwrite-default: restic default (always)
overwrite-always: always
@@ -10041,9 +10049,9 @@ tools:
archive-tar: tar
archive-zip: zip
label-output-file: Redirect to a local file (optional)
hint-dump: dump streams a single file or folder straight out of the repository,
so you do not have to restore a whole snapshot to get one config file
back.
hint-dump: >-
dump streams a single file or folder straight out of the repository, so
you do not have to restore a whole snapshot to get one config file back.
title-mount-options: Mount options
label-mount-point: Mount point
label-allow-other: Allow other users to access the mount
@@ -10080,29 +10088,34 @@ tools:
label-extra-options: Backend options (-o)
placeholder-extra-option: s3.connections=4
label-extra-arguments: Extra arguments (appended as-is)
label-no-lock: --no-lock
label-no-cache: --no-cache
label-insecure-tls: --insecure-tls
label-json: --json
label-quiet: --quiet
label-verbose: --verbose
label-no-lock: '--no-lock'
label-no-cache: '--no-cache'
label-insecure-tls: '--insecure-tls'
label-json: '--json'
label-quiet: '--quiet'
label-verbose: '--verbose'
title-output: Generated command
label-include-environment: Include the environment setup
label-multiline: One argument per line
button-reset: Reset to defaults
warning-history: "Placeholder exports stay in your shell history once filled in:
prefer the prompt options, or clear the history afterwards."
warning-target: restore recreates the full path of every file under the
target directory, so /etc/hosts ends up in the etc/hosts subfolder of the
warning-history: >-
Placeholder exports stay in your shell history once filled in: prefer
the prompt options, or clear the history afterwards.
warning-target: >-
restore recreates the full path of every file under the target
directory, so /etc/hosts ends up in the etc/hosts subfolder of the
target.
warning-delete: --delete removes the files of the target directory that are not
in the snapshot. Try it with --dry-run first.
warning-restic-version: --dry-run, --delete and --overwrite require restic 0.17 or newer.
warning-mount: mount needs FUSE, exposes the snapshots read-only, and keeps
running until you stop it with Ctrl-C.
warning-delete: >-
--delete removes the files of the target directory that are not in the
snapshot. Try it with --dry-run first.
warning-restic-version: '--dry-run, --delete and --overwrite require restic 0.17 or newer.'
warning-mount: >-
mount needs FUSE, exposes the snapshots read-only, and keeps running
until you stop it with Ctrl-C.
title-walkthrough: Recovery walkthrough
hint-walkthrough: The usual sequence when the repository is all that is left,
built from the settings above.
hint-walkthrough: >-
The usual sequence when the repository is all that is left, built from
the settings above.
walkthrough-snapshots: List the snapshots of the repository
walkthrough-find: Find which snapshot holds the file you need
walkthrough-ls: List the files of the chosen snapshot
@@ -10111,15 +10124,17 @@ tools:
title-backrest: Backrest cheat sheet
table-item: Item
table-value: Default path or format (Docker image between parentheses)
backrest-config: Config file, holding the repository URI, its password and the
backend environment variables
backrest-config: >-
Config file, holding the repository URI, its password and the backend
environment variables
backrest-data: Data directory
backrest-binary: Restic binary downloaded by Backrest
backrest-plan-tag: Tag identifying the plan
backrest-instance-tag: Tag identifying the instance
hint-backrest: "A Backrest repository is a plain restic repository: if the web
UI is gone, read the URI and the password out of config.json and drive it
with the restic binary Backrest already downloaded."
hint-backrest: >-
A Backrest repository is a plain restic repository: if the web UI is
gone, read the URI and the password out of config.json and drive it with
the restic binary Backrest already downloaded.
external-self-hosted-required: External Self Hosted Required
collapsibleToolMenu:
text:
+1 -1
View File
@@ -5,7 +5,7 @@ export const tool = defineTool({
name: t('tools.timezone-converter.title'),
path: '/timezone-converter',
description: t('tools.timezone-converter.description'),
keywords: ['timezone', 'tz', 'date', 'time', 'country', 'converter'],
keywords: ['timezone', 'tz', 'date', 'time', 'country', 'converter', 'posix'],
component: () => import('./timezone-converter.vue'),
icon: defineAsyncComponent(() => import('@vicons/tabler/es/CalendarTime')),
createdAt: new Date('2024-08-15'),
@@ -0,0 +1,549 @@
{
"Africa/Abidjan": "GMT0",
"Africa/Accra": "GMT0",
"Africa/Addis_Ababa": "EAT-3",
"Africa/Algiers": "CET-1",
"Africa/Asmara": "EAT-3",
"Africa/Asmera": "EAT-3",
"Africa/Bamako": "GMT0",
"Africa/Bangui": "WAT-1",
"Africa/Banjul": "GMT0",
"Africa/Bissau": "GMT0",
"Africa/Blantyre": "CAT-2",
"Africa/Brazzaville": "WAT-1",
"Africa/Bujumbura": "CAT-2",
"Africa/Cairo": "EEST",
"Africa/Casablanca": "WET0",
"Africa/Ceuta": "CET-1CEST,M3.5.0,M10.5.0/3",
"Africa/Conakry": "GMT0",
"Africa/Dakar": "GMT0",
"Africa/Dar_es_Salaam": "EAT-3",
"Africa/Djibouti": "EAT-3",
"Africa/Douala": "WAT-1",
"Africa/El_Aaiun": "WET0",
"Africa/Freetown": "GMT0",
"Africa/Gaborone": "CAT-2",
"Africa/Harare": "CAT-2",
"Africa/Johannesburg": "SAST-2",
"Africa/Kampala": "EAT-3",
"Africa/Khartoum": "EAT-3",
"Africa/Kigali": "CAT-2",
"Africa/Kinshasa": "WAT-1",
"Africa/Lagos": "WAT-1",
"Africa/Libreville": "WAT-1",
"Africa/Lome": "GMT0",
"Africa/Luanda": "WAT-1",
"Africa/Lubumbashi": "CAT-2",
"Africa/Lusaka": "CAT-2",
"Africa/Malabo": "WAT-1",
"Africa/Maputo": "CAT-2",
"Africa/Maseru": "SAST-2",
"Africa/Mbabane": "SAST-2",
"Africa/Mogadishu": "EAT-3",
"Africa/Monrovia": "GMT0",
"Africa/Nairobi": "EAT-3",
"Africa/Ndjamena": "WAT-1",
"Africa/Niamey": "WAT-1",
"Africa/Nouakchott": "GMT0",
"Africa/Ouagadougou": "GMT0",
"Africa/Porto-Novo": "WAT-1",
"Africa/Sao_Tome": "GMT0",
"Africa/Timbuktu": "GMT0",
"Africa/Tripoli": "EET-2",
"Africa/Tunis": "CET-1CEST,M3.5.0,M10.5.0/3",
"Africa/Windhoek": "WAT-1WAST,M9.1.0,M4.1.0",
"America/Adak": "HAST10HADT,M3.2.0,M11.1.0",
"America/Anchorage": "AKST9AKDT,M3.2.0,M11.1.0",
"America/Anguilla": "AST4",
"America/Antigua": "AST4",
"America/Araguaina": "BRT3",
"America/Argentina/Buenos_Aires": "ART3ARST,M10.1.0/0,M3.3.0/0",
"America/Argentina/Catamarca": "ART3ARST,M10.1.0/0,M3.3.0/0",
"America/Argentina/ComodRivadavia": "ART3ARST,M10.1.0/0,M3.3.0/0",
"America/Argentina/Cordoba": "ART3ARST,M10.1.0/0,M3.3.0/0",
"America/Argentina/Jujuy": "ART3ARST,M10.1.0/0,M3.3.0/0",
"America/Argentina/La_Rioja": "ART3ARST,M10.1.0/0,M3.3.0/0",
"America/Argentina/Mendoza": "ART3ARST,M10.1.0/0,M3.3.0/0",
"America/Argentina/Rio_Gallegos": "ART3ARST,M10.1.0/0,M3.3.0/0",
"America/Argentina/San_Juan": "ART3ARST,M10.1.0/0,M3.3.0/0",
"America/Argentina/San_Luis": "ART3",
"America/Argentina/Tucuman": "ART3ARST,M10.1.0/0,M3.3.0/0",
"America/Argentina/Ushuaia": "ART3ARST,M10.1.0/0,M3.3.0/0",
"America/Aruba": "AST4",
"America/Asuncion": "PYT4PYST,M10.3.0/0,M3.2.0/0",
"America/Atikokan": "EST5",
"America/Atka": "HAST10HADT,M3.2.0,M11.1.0",
"America/Bahia": "BRT3",
"America/Barbados": "AST4",
"America/Belem": "BRT3",
"America/Belize": "CST6",
"America/Blanc-Sablon": "AST4",
"America/Boa_Vista": "AMT4",
"America/Bogota": "COT5",
"America/Boise": "MST7MDT,M3.2.0,M11.1.0",
"America/Buenos_Aires": "ART3ARST,M10.1.0/0,M3.3.0/0",
"America/Cambridge_Bay": "MST7MDT,M3.2.0,M11.1.0",
"America/Campo_Grande": "AMT4AMST,M10.2.0/0,M2.3.0/0",
"America/Cancun": "CST6CDT,M4.1.0,M10.5.0",
"America/Caracas": "VET4:30",
"America/Catamarca": "ART3ARST,M10.1.0/0,M3.3.0/0",
"America/Cayenne": "GFT3",
"America/Cayman": "EST5",
"America/Chicago": "CST6CDT,M3.2.0,M11.1.0",
"America/Chihuahua": "MST7MDT,M4.1.0,M10.5.0",
"America/Coral_Harbour": "EST5",
"America/Cordoba": "ART3ARST,M10.1.0/0,M3.3.0/0",
"America/Costa_Rica": "CST6",
"America/Cuiaba": "AMT4AMST,M10.2.0/0,M2.3.0/0",
"America/Curacao": "AST4",
"America/Danmarkshavn": "GMT0",
"America/Dawson": "PST8PDT,M3.2.0,M11.1.0",
"America/Dawson_Creek": "MST7",
"America/Denver": "MST7MDT,M3.2.0,M11.1.0",
"America/Detroit": "EST5EDT,M3.2.0,M11.1.0",
"America/Dominica": "AST4",
"America/Edmonton": "MST7MDT,M3.2.0,M11.1.0",
"America/Eirunepe": "ACT5",
"America/El_Salvador": "CST6",
"America/Ensenada": "PST8PDT,M4.1.0,M10.5.0",
"America/Fortaleza": "BRT3",
"America/Fort_Wayne": "EST5EDT,M3.2.0,M11.1.0",
"America/Glace_Bay": "AST4ADT,M3.2.0,M11.1.0",
"America/Godthab": "WGST",
"America/Goose_Bay": "AST4ADT,M3.2.0/0:01,M11.1.0/0:01",
"America/Grand_Turk": "EST5EDT,M3.2.0,M11.1.0",
"America/Grenada": "AST4",
"America/Guadeloupe": "AST4",
"America/Guatemala": "CST6",
"America/Guayaquil": "ECT5",
"America/Guyana": "GYT4",
"America/Halifax": "AST4ADT,M3.2.0,M11.1.0",
"America/Havana": "CST5CDT,M3.3.0/0,M10.5.0/1",
"America/Hermosillo": "MST7",
"America/Indiana/Indianapolis": "EST5EDT,M3.2.0,M11.1.0",
"America/Indiana/Knox": "CST6CDT,M3.2.0,M11.1.0",
"America/Indiana/Marengo": "EST5EDT,M3.2.0,M11.1.0",
"America/Indiana/Petersburg": "EST5EDT,M3.2.0,M11.1.0",
"America/Indianapolis": "EST5EDT,M3.2.0,M11.1.0",
"America/Indiana/Tell_City": "CST6CDT,M3.2.0,M11.1.0",
"America/Indiana/Vevay": "EST5EDT,M3.2.0,M11.1.0",
"America/Indiana/Vincennes": "EST5EDT,M3.2.0,M11.1.0",
"America/Indiana/Winamac": "EST5EDT,M3.2.0,M11.1.0",
"America/Inuvik": "MST7MDT,M3.2.0,M11.1.0",
"America/Iqaluit": "EST5EDT,M3.2.0,M11.1.0",
"America/Jamaica": "EST5",
"America/Jujuy": "ART3ARST,M10.1.0/0,M3.3.0/0",
"America/Juneau": "AKST9AKDT,M3.2.0,M11.1.0",
"America/Kentucky/Louisville": "EST5EDT,M3.2.0,M11.1.0",
"America/Kentucky/Monticello": "EST5EDT,M3.2.0,M11.1.0",
"America/Knox_IN": "CST6CDT,M3.2.0,M11.1.0",
"America/La_Paz": "BOT4",
"America/Lima": "PET5",
"America/Los_Angeles": "PST8PDT,M3.2.0,M11.1.0",
"America/Louisville": "EST5EDT,M3.2.0,M11.1.0",
"America/Maceio": "BRT3",
"America/Managua": "CST6",
"America/Manaus": "AMT4",
"America/Marigot": "AST4",
"America/Martinique": "AST4",
"America/Mazatlan": "MST7MDT,M4.1.0,M10.5.0",
"America/Mendoza": "ART3ARST,M10.1.0/0,M3.3.0/0",
"America/Menominee": "CST6CDT,M3.2.0,M11.1.0",
"America/Merida": "CST6CDT,M4.1.0,M10.5.0",
"America/Mexico_City": "CST6CDT,M4.1.0,M10.5.0",
"America/Miquelon": "PMST3PMDT,M3.2.0,M11.1.0",
"America/Moncton": "AST4ADT,M3.2.0,M11.1.0",
"America/Monterrey": "CST6CDT,M4.1.0,M10.5.0",
"America/Montevideo": "UYT3UYST,M10.1.0,M3.2.0",
"America/Montreal": "EST5EDT,M3.2.0,M11.1.0",
"America/Montserrat": "AST4",
"America/Nassau": "EST5EDT,M3.2.0,M11.1.0",
"America/New_York": "EST5EDT,M3.2.0,M11.1.0",
"America/Nipigon": "EST5EDT,M3.2.0,M11.1.0",
"America/Nome": "AKST9AKDT,M3.2.0,M11.1.0",
"America/Noronha": "FNT2",
"America/North_Dakota/Center": "CST6CDT,M3.2.0,M11.1.0",
"America/North_Dakota/New_Salem": "CST6CDT,M3.2.0,M11.1.0",
"America/Panama": "EST5",
"America/Pangnirtung": "EST5EDT,M3.2.0,M11.1.0",
"America/Paramaribo": "SRT3",
"America/Phoenix": "MST7",
"America/Port-au-Prince": "EST5",
"America/Porto_Acre": "ACT5",
"America/Port_of_Spain": "AST4",
"America/Porto_Velho": "AMT4",
"America/Puerto_Rico": "AST4",
"America/Rainy_River": "CST6CDT,M3.2.0,M11.1.0",
"America/Rankin_Inlet": "CST6CDT,M3.2.0,M11.1.0",
"America/Recife": "BRT3",
"America/Regina": "CST6",
"America/Resolute": "EST5",
"America/Rio_Branco": "ACT5",
"America/Rosario": "ART3ARST,M10.1.0/0,M3.3.0/0",
"America/Santiago": "CLST",
"America/Santo_Domingo": "AST4",
"America/Sao_Paulo": "BRT3BRST,M10.2.0/0,M2.3.0/0",
"America/Scoresbysund": "EGT1EGST,M3.5.0/0,M10.5.0/1",
"America/Shiprock": "MST7MDT,M3.2.0,M11.1.0",
"America/St_Barthelemy": "AST4",
"America/St_Johns": "NST3:30NDT,M3.2.0/0:01,M11.1.0/0:01",
"America/St_Kitts": "AST4",
"America/St_Lucia": "AST4",
"America/St_Thomas": "AST4",
"America/St_Vincent": "AST4",
"America/Swift_Current": "CST6",
"America/Tegucigalpa": "CST6",
"America/Thule": "AST4ADT,M3.2.0,M11.1.0",
"America/Thunder_Bay": "EST5EDT,M3.2.0,M11.1.0",
"America/Tijuana": "PST8PDT,M4.1.0,M10.5.0",
"America/Toronto": "EST5EDT,M3.2.0,M11.1.0",
"America/Tortola": "AST4",
"America/Vancouver": "PST8PDT,M3.2.0,M11.1.0",
"America/Virgin": "AST4",
"America/Whitehorse": "PST8PDT,M3.2.0,M11.1.0",
"America/Winnipeg": "CST6CDT,M3.2.0,M11.1.0",
"America/Yakutat": "AKST9AKDT,M3.2.0,M11.1.0",
"America/Yellowknife": "MST7MDT,M3.2.0,M11.1.0",
"Antarctica/Casey": "WST-8",
"Antarctica/Davis": "DAVT-7",
"Antarctica/DumontDUrville": "DDUT-10",
"Antarctica/Mawson": "MAWT-6",
"Antarctica/McMurdo": "NZST-12NZDT,M9.5.0,M4.1.0/3",
"Antarctica/Palmer": "CLST",
"Antarctica/Rothera": "ROTT3",
"Antarctica/South_Pole": "NZST-12NZDT,M9.5.0,M4.1.0/3",
"Antarctica/Syowa": "SYOT-3",
"Antarctica/Vostok": "VOST-6",
"Arctic/Longyearbyen": "CET-1CEST,M3.5.0,M10.5.0/3",
"Asia/Aden": "AST-3",
"Asia/Almaty": "ALMT-6",
"Asia/Amman": "EET-2EEST,M3.5.4/0,M10.5.5/1",
"Asia/Anadyr": "ANAT-12ANAST,M3.5.0,M10.5.0/3",
"Asia/Aqtau": "AQTT-5",
"Asia/Aqtobe": "AQTT-5",
"Asia/Ashgabat": "TMT-5",
"Asia/Ashkhabad": "TMT-5",
"Asia/Baghdad": "AST-3",
"Asia/Bahrain": "AST-3",
"Asia/Baku": "AZT-4AZST,M3.5.0/4,M10.5.0/5",
"Asia/Bangkok": "ICT-7",
"Asia/Beirut": "EET-2EEST,M3.5.0/0,M10.5.0/0",
"Asia/Bishkek": "KGT-6",
"Asia/Brunei": "BNT-8",
"Asia/Calcutta": "IST-5:30",
"Asia/Choibalsan": "CHOT-9",
"Asia/Chongqing": "CST-8",
"Asia/Chungking": "CST-8",
"Asia/Colombo": "IST-5:30",
"Asia/Dacca": "BDT-6",
"Asia/Damascus": "EET-2EEST,M4.1.5/0,J274/0",
"Asia/Dhaka": "BDT-6",
"Asia/Dili": "TLT-9",
"Asia/Dubai": "GST-4",
"Asia/Dushanbe": "TJT-5",
"Asia/Gaza": "EET-2EEST,J91/0,M9.2.4",
"Asia/Harbin": "CST-8",
"Asia/Ho_Chi_Minh": "ICT-7",
"Asia/Hong_Kong": "HKT-8",
"Asia/Hovd": "HOVT-7",
"Asia/Irkutsk": "IRKT-8IRKST,M3.5.0,M10.5.0/3",
"Asia/Istanbul": "EET-2EEST,M3.5.0/3,M10.5.0/4",
"Asia/Jakarta": "WIT-7",
"Asia/Jayapura": "EIT-9",
"Asia/Jerusalem": "IDDT",
"Asia/Kabul": "AFT-4:30",
"Asia/Kamchatka": "PETT-12PETST,M3.5.0,M10.5.0/3",
"Asia/Karachi": "PKT-5",
"Asia/Kashgar": "CST-8",
"Asia/Katmandu": "NPT-5:45",
"Asia/Kolkata": "IST-5:30",
"Asia/Krasnoyarsk": "KRAT-7KRAST,M3.5.0,M10.5.0/3",
"Asia/Kuala_Lumpur": "MYT-8",
"Asia/Kuching": "MYT-8",
"Asia/Kuwait": "AST-3",
"Asia/Macao": "CST-8",
"Asia/Macau": "CST-8",
"Asia/Magadan": "MAGT-11MAGST,M3.5.0,M10.5.0/3",
"Asia/Makassar": "CIT-8",
"Asia/Manila": "PHT-8",
"Asia/Muscat": "GST-4",
"Asia/Nicosia": "EET-2EEST,M3.5.0/3,M10.5.0/4",
"Asia/Novosibirsk": "NOVT-6NOVST,M3.5.0,M10.5.0/3",
"Asia/Omsk": "OMST-6OMSST,M3.5.0,M10.5.0/3",
"Asia/Oral": "ORAT-5",
"Asia/Phnom_Penh": "ICT-7",
"Asia/Pontianak": "WIT-7",
"Asia/Pyongyang": "KST-9",
"Asia/Qatar": "AST-3",
"Asia/Qyzylorda": "QYZT-6",
"Asia/Rangoon": "MMT-6:30",
"Asia/Riyadh": "AST-3",
"Asia/Riyadh87": "zzz-3:07:04",
"Asia/Riyadh88": "zzz-3:07:04",
"Asia/Riyadh89": "zzz-3:07:04",
"Asia/Saigon": "ICT-7",
"Asia/Sakhalin": "SAKT-10SAKST,M3.5.0,M10.5.0/3",
"Asia/Samarkand": "UZT-5",
"Asia/Seoul": "KST-9",
"Asia/Shanghai": "CST-8",
"Asia/Singapore": "SGT-8",
"Asia/Taipei": "CST-8",
"Asia/Tashkent": "UZT-5",
"Asia/Tbilisi": "GET-4",
"Asia/Tehran": "IRDT",
"Asia/Tel_Aviv": "IDDT",
"Asia/Thimbu": "BTT-6",
"Asia/Thimphu": "BTT-6",
"Asia/Tokyo": "JST-9",
"Asia/Ujung_Pandang": "CIT-8",
"Asia/Ulaanbaatar": "ULAT-8",
"Asia/Ulan_Bator": "ULAT-8",
"Asia/Urumqi": "CST-8",
"Asia/Vientiane": "ICT-7",
"Asia/Vladivostok": "VLAT-10VLAST,M3.5.0,M10.5.0/3",
"Asia/Yakutsk": "YAKT-9YAKST,M3.5.0,M10.5.0/3",
"Asia/Yekaterinburg": "YEKT-5YEKST,M3.5.0,M10.5.0/3",
"Asia/Yerevan": "AMT-4AMST,M3.5.0,M10.5.0/3",
"Atlantic/Azores": "AZOT1AZOST,M3.5.0/0,M10.5.0/1",
"Atlantic/Bermuda": "AST4ADT,M3.2.0,M11.1.0",
"Atlantic/Canary": "WET0WEST,M3.5.0/1,M10.5.0",
"Atlantic/Cape_Verde": "CVT1",
"Atlantic/Faeroe": "WET0WEST,M3.5.0/1,M10.5.0",
"Atlantic/Faroe": "WET0WEST,M3.5.0/1,M10.5.0",
"Atlantic/Jan_Mayen": "CET-1CEST,M3.5.0,M10.5.0/3",
"Atlantic/Madeira": "WET0WEST,M3.5.0/1,M10.5.0",
"Atlantic/Reykjavik": "GMT0",
"Atlantic/South_Georgia": "GST2",
"Atlantic/Stanley": "FKT4FKST,M9.1.0,M4.3.0",
"Atlantic/St_Helena": "GMT0",
"Australia/ACT": "EST-10EST,M10.1.0,M4.1.0/3",
"Australia/Adelaide": "CST-9:30CST,M10.1.0,M4.1.0/3",
"Australia/Brisbane": "EST-10",
"Australia/Broken_Hill": "CST-9:30CST,M10.1.0,M4.1.0/3",
"Australia/Canberra": "EST-10EST,M10.1.0,M4.1.0/3",
"Australia/Currie": "EST-10EST,M10.1.0,M4.1.0/3",
"Australia/Darwin": "CST-9:30",
"Australia/Eucla": "CWST-8:45",
"Australia/Hobart": "EST-10EST,M10.1.0,M4.1.0/3",
"Australia/LHI": "LHST-10:30LHST-11,M10.1.0,M4.1.0",
"Australia/Lindeman": "EST-10",
"Australia/Lord_Howe": "LHST-10:30LHST-11,M10.1.0,M4.1.0",
"Australia/Melbourne": "EST-10EST,M10.1.0,M4.1.0/3",
"Australia/North": "CST-9:30",
"Australia/NSW": "EST-10EST,M10.1.0,M4.1.0/3",
"Australia/Perth": "WST-8",
"Australia/Queensland": "EST-10",
"Australia/South": "CST-9:30CST,M10.1.0,M4.1.0/3",
"Australia/Sydney": "EST-10EST,M10.1.0,M4.1.0/3",
"Australia/Tasmania": "EST-10EST,M10.1.0,M4.1.0/3",
"Australia/Victoria": "EST-10EST,M10.1.0,M4.1.0/3",
"Australia/West": "WST-8",
"Australia/Yancowinna": "CST-9:30CST,M10.1.0,M4.1.0/3",
"Brazil/Acre": "ACT5",
"Brazil/DeNoronha": "FNT2",
"Brazil/East": "BRT3BRST,M10.2.0/0,M2.3.0/0",
"Brazil/West": "AMT4",
"Canada/Atlantic": "AST4ADT,M3.2.0,M11.1.0",
"Canada/Central": "CST6CDT,M3.2.0,M11.1.0",
"Canada/Eastern": "EST5EDT,M3.2.0,M11.1.0",
"Canada/East-Saskatchewan": "CST6",
"Canada/Mountain": "MST7MDT,M3.2.0,M11.1.0",
"Canada/Newfoundland": "NST3:30NDT,M3.2.0/0:01,M11.1.0/0:01",
"Canada/Pacific": "PST8PDT,M3.2.0,M11.1.0",
"Canada/Saskatchewan": "CST6",
"Canada/Yukon": "PST8PDT,M3.2.0,M11.1.0",
"Chile/Continental": "CLST",
"Chile/EasterIsland": "EASST",
"Etc/GMT": "GMT0",
"Etc/GMT0": "GMT0",
"Etc/GMT-0": "GMT0",
"Etc/GMT+0": "GMT0",
"Etc/GMT-1": "GMT-1",
"Etc/GMT+1": "GMT+1",
"Etc/GMT-10": "GMT-10",
"Etc/GMT+10": "GMT+10",
"Etc/GMT-11": "GMT-11",
"Etc/GMT+11": "GMT+11",
"Etc/GMT-12": "GMT-12",
"Etc/GMT+12": "GMT+12",
"Etc/GMT-13": "GMT-13",
"Etc/GMT-14": "GMT-14",
"Etc/GMT-2": "GMT-2",
"Etc/GMT+2": "GMT+2",
"Etc/GMT-3": "GMT-3",
"Etc/GMT+3": "GMT+3",
"Etc/GMT-4": "GMT-4",
"Etc/GMT+4": "GMT+4",
"Etc/GMT-5": "GMT-5",
"Etc/GMT+5": "GMT+5",
"Etc/GMT-6": "GMT-6",
"Etc/GMT+6": "GMT+6",
"Etc/GMT-7": "GMT-7",
"Etc/GMT+7": "GMT+7",
"Etc/GMT-8": "GMT-8",
"Etc/GMT+8": "GMT+8",
"Etc/GMT-9": "GMT-9",
"Etc/GMT+9": "GMT+9",
"Etc/Greenwich": "GMT0",
"Etc/UCT": "UCT0",
"Etc/Universal": "UTC0",
"Etc/UTC": "UTC0",
"Etc/Zulu": "UTC0",
"Europe/Amsterdam": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Andorra": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Athens": "EET-2EEST,M3.5.0/3,M10.5.0/4",
"Europe/Belfast": "GMT0BST,M3.5.0/1,M10.5.0",
"Europe/Belgrade": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Berlin": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Bratislava": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Brussels": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Bucharest": "EET-2EEST,M3.5.0/3,M10.5.0/4",
"Europe/Budapest": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Chisinau": "EET-2EEST,M3.5.0/3,M10.5.0/4",
"Europe/Copenhagen": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Dublin": "GMT0IST,M3.5.0/1,M10.5.0",
"Europe/Gibraltar": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Guernsey": "GMT0BST,M3.5.0/1,M10.5.0",
"Europe/Helsinki": "EET-2EEST,M3.5.0/3,M10.5.0/4",
"Europe/Isle_of_Man": "GMT0BST,M3.5.0/1,M10.5.0",
"Europe/Istanbul": "EET-2EEST,M3.5.0/3,M10.5.0/4",
"Europe/Jersey": "GMT0BST,M3.5.0/1,M10.5.0",
"Europe/Kaliningrad": "EET-2EEST,M3.5.0,M10.5.0/3",
"Europe/Kiev": "EET-2EEST,M3.5.0/3,M10.5.0/4",
"Europe/Lisbon": "WET0WEST,M3.5.0/1,M10.5.0",
"Europe/Ljubljana": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/London": "GMT0BST,M3.5.0/1,M10.5.0",
"Europe/Luxembourg": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Madrid": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Malta": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Mariehamn": "EET-2EEST,M3.5.0/3,M10.5.0/4",
"Europe/Minsk": "EET-2EEST,M3.5.0,M10.5.0/3",
"Europe/Monaco": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Moscow": "MSK-3MSD,M3.5.0,M10.5.0/3",
"Europe/Nicosia": "EET-2EEST,M3.5.0/3,M10.5.0/4",
"Europe/Oslo": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Paris": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Podgorica": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Prague": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Riga": "EET-2EEST,M3.5.0/3,M10.5.0/4",
"Europe/Rome": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Samara": "SAMT-4SAMST,M3.5.0,M10.5.0/3",
"Europe/San_Marino": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Sarajevo": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Simferopol": "EET-2EEST,M3.5.0/3,M10.5.0/4",
"Europe/Skopje": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Sofia": "EET-2EEST,M3.5.0/3,M10.5.0/4",
"Europe/Stockholm": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Tallinn": "EET-2EEST,M3.5.0/3,M10.5.0/4",
"Europe/Tirane": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Tiraspol": "EET-2EEST,M3.5.0/3,M10.5.0/4",
"Europe/Uzhgorod": "EET-2EEST,M3.5.0/3,M10.5.0/4",
"Europe/Vaduz": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Vatican": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Vienna": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Vilnius": "EET-2EEST,M3.5.0/3,M10.5.0/4",
"Europe/Volgograd": "VOLT-3VOLST,M3.5.0,M10.5.0/3",
"Europe/Warsaw": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Zagreb": "CET-1CEST,M3.5.0,M10.5.0/3",
"Europe/Zaporozhye": "EET-2EEST,M3.5.0/3,M10.5.0/4",
"Europe/Zurich": "CET-1CEST,M3.5.0,M10.5.0/3",
"Indian/Antananarivo": "EAT-3",
"Indian/Chagos": "IOT-6",
"Indian/Christmas": "CXT-7",
"Indian/Cocos": "CCT-6:30",
"Indian/Comoro": "EAT-3",
"Indian/Kerguelen": "TFT-5",
"Indian/Mahe": "SCT-4",
"Indian/Maldives": "MVT-5",
"Indian/Mauritius": "MUT-4",
"Indian/Mayotte": "EAT-3",
"Indian/Reunion": "RET-4",
"Mexico/BajaNorte": "PST8PDT,M4.1.0,M10.5.0",
"Mexico/BajaSur": "MST7MDT,M4.1.0,M10.5.0",
"Mexico/General": "CST6CDT,M4.1.0,M10.5.0",
"Mideast/Riyadh87": "zzz-3:07:04",
"Mideast/Riyadh88": "zzz-3:07:04",
"Mideast/Riyadh89": "zzz-3:07:04",
"Pacific/Apia": "WST11",
"Pacific/Auckland": "NZST-12NZDT,M9.5.0,M4.1.0/3",
"Pacific/Chatham": "CHAST-12:45CHADT,M9.5.0/2:45,M4.1.0/3:45",
"Pacific/Easter": "EASST",
"Pacific/Efate": "VUT-11",
"Pacific/Enderbury": "PHOT-13",
"Pacific/Fakaofo": "TKT10",
"Pacific/Fiji": "FJT-12",
"Pacific/Funafuti": "TVT-12",
"Pacific/Galapagos": "GALT6",
"Pacific/Gambier": "GAMT9",
"Pacific/Guadalcanal": "SBT-11",
"Pacific/Guam": "ChST-10",
"Pacific/Honolulu": "HST10",
"Pacific/Johnston": "HST10",
"Pacific/Kiritimati": "LINT-14",
"Pacific/Kosrae": "KOST-11",
"Pacific/Kwajalein": "MHT-12",
"Pacific/Majuro": "MHT-12",
"Pacific/Marquesas": "MART9:30",
"Pacific/Midway": "SST11",
"Pacific/Nauru": "NRT-12",
"Pacific/Niue": "NUT11",
"Pacific/Norfolk": "NFT-11:30",
"Pacific/Noumea": "NCT-11",
"Pacific/Pago_Pago": "SST11",
"Pacific/Palau": "PWT-9",
"Pacific/Pitcairn": "PST8",
"Pacific/Ponape": "PONT-11",
"Pacific/Port_Moresby": "PGT-10",
"Pacific/Rarotonga": "CKT10",
"Pacific/Saipan": "ChST-10",
"Pacific/Samoa": "SST11",
"Pacific/Tahiti": "TAHT10",
"Pacific/Tarawa": "GILT-12",
"Pacific/Tongatapu": "TOT-13",
"Pacific/Truk": "TRUT-10",
"Pacific/Wake": "WAKT-12",
"Pacific/Wallis": "WFT-12",
"Pacific/Yap": "TRUT-10",
"SystemV/AST4": "AST4",
"SystemV/AST4ADT": "AST4ADT,M3.2.0,M11.1.0",
"SystemV/CST6": "CST6",
"SystemV/CST6CDT": "CST6CDT,M3.2.0,M11.1.0",
"SystemV/EST5": "EST5",
"SystemV/EST5EDT": "EST5EDT,M3.2.0,M11.1.0",
"SystemV/HST10": "HST10",
"SystemV/MST7": "MST7",
"SystemV/MST7MDT": "MST7MDT,M3.2.0,M11.1.0",
"SystemV/PST8": "PST8",
"SystemV/PST8PDT": "PST8PDT,M3.2.0,M11.1.0",
"SystemV/YST9": "GAMT9",
"SystemV/YST9YDT": "AKST9AKDT,M3.2.0,M11.1.0",
"US/Alaska": "AKST9AKDT,M3.2.0,M11.1.0",
"US/Aleutian": "HAST10HADT,M3.2.0,M11.1.0",
"US/Arizona": "MST7",
"US/Central": "CST6CDT,M3.2.0,M11.1.0",
"US/Eastern": "EST5EDT,M3.2.0,M11.1.0",
"US/East-Indiana": "EST5EDT,M3.2.0,M11.1.0",
"US/Hawaii": "HST10",
"US/Indiana-Starke": "CST6CDT,M3.2.0,M11.1.0",
"US/Michigan": "EST5EDT,M3.2.0,M11.1.0",
"US/Mountain": "MST7MDT,M3.2.0,M11.1.0",
"US/Pacific": "PST8PDT,M3.2.0,M11.1.0",
"US/Samoa": "SST11"
}
@@ -2,6 +2,8 @@
import { useI18n } from 'vue-i18n';
import * as ctz from 'countries-and-timezones';
import getTimezoneOffset from 'get-timezone-offset';
import posixTimezones from './posix-timezones.json';
import { useFlexSearch } from '@/composable/flexSearch';
const { t } = useI18n();
@@ -45,6 +47,19 @@ const allCountries = Object.values(ctz.getAllCountries()).map((c) => ({
}));
const countryToTimezonesInput = ref('FR');
const countryToTimezonesOutput = computed(() => ctz.getTimezonesForCountry(countryToTimezonesInput.value));
const searchPosix = ref('');
const { searchResult: searchPosixResult } = useFlexSearch({
search: searchPosix,
data: Object.entries(posixTimezones).map(([timezone, posix]) => ({
timezone,
posix,
})),
options: {
keys: ['timezone', 'posix'],
},
});
</script>
<template>
@@ -146,5 +161,38 @@ const countryToTimezonesOutput = computed(() => ctz.getTimezonesForCountry(count
</li>
</ul>
</c-card>
<c-card :title="t('tools.timezone-converter.texts.title-posix-timezones')" mb-2>
<div flex items-center gap-3>
<c-input-text
v-model:value="searchPosix"
:placeholder="t('tools.timezone-converter.texts.search-posix-timezones')"
mx-auto
max-w-600px
>
<template #prefix>
<icon-mdi-search mr-6px color-black op-70 dark:color-white />
</template>
</c-input-text>
</div>
<n-alert v-if="!searchPosixResult.length" type="info" mt-2>
{{ t('tools.timezone-converter.texts.tag-no-results') }}
</n-alert>
<n-table v-else mt-2>
<thead>
<tr>
<th>{{ t('tools.timezone-converter.texts.tag-timezone') }}</th>
<th>{{ t('tools.timezone-converter.texts.tag-posix') }}</th>
</tr>
</thead>
<tbody>
<tr v-for="(result, ix) in searchPosixResult" :key="ix">
<td><input-copyable readonly :value="result.timezone" /></td>
<td><input-copyable readonly :value="result.posix" /></td>
</tr>
</tbody>
</n-table>
</c-card>
</div>
</template>