Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't set environment variables #27

Closed
rithask opened this issue May 1, 2024 · 5 comments
Closed

can't set environment variables #27

rithask opened this issue May 1, 2024 · 5 comments
Assignees

Comments

@rithask
Copy link

rithask commented May 1, 2024

i can't figure out how to set TIME_ZONE. i've tried setting it Chennai and Asia/Kolkata but none of it worked. i defined the entries at environment field for dawarich_sidekiq and dawarich_app or am i doing it wrong? also, how do i check if MAP_CENTER is working properly?

@rithask
Copy link
Author

rithask commented May 3, 2024

okay, i defined it and it's showing up when i run this command docker exec -it dawarich_app env but not when i run docker exec -it dawarich_app echo $TIME_ZONE. the time in dawarich is still wrong. how do i fix it?

@Freika
Copy link
Owner

Freika commented May 5, 2024

@rithask I'll experiment with timezones in my spare time. Meanwhile, for context, list of supported (by Rails) timezones:

["Etc/GMT+12",
 "Pacific/Midway",
 "Pacific/Pago_Pago",
 "Pacific/Honolulu",
 "America/Juneau",
 "America/Los_Angeles",
 "America/Tijuana",
 "America/Denver",
 "America/Phoenix",
 "America/Chihuahua",
 "America/Mazatlan",
 "America/Chicago",
 "America/Regina",
 "America/Mexico_City",
 "America/Mexico_City",
 "America/Monterrey",
 "America/Guatemala",
 "America/New_York",
 "America/Indiana/Indianapolis",
 "America/Bogota",
 "America/Lima",
 "America/Lima",
 "America/Halifax",
 "America/Caracas",
 "America/La_Paz",
 "America/Santiago",
 "America/St_Johns",
 "America/Sao_Paulo",
 "America/Argentina/Buenos_Aires",
 "America/Montevideo",
 "America/Guyana",
 "America/Puerto_Rico",
 "America/Godthab",
 "Atlantic/South_Georgia",
 "Atlantic/Azores",
 "Atlantic/Cape_Verde",
 "Europe/Dublin",
 "Europe/London",
 "Europe/Lisbon",
 "Europe/London",
 "Africa/Casablanca",
 "Africa/Monrovia",
 "Etc/UTC",
 "Europe/Belgrade",
 "Europe/Bratislava",
 "Europe/Budapest",
 "Europe/Ljubljana",
 "Europe/Prague",
 "Europe/Sarajevo",
 "Europe/Skopje",
 "Europe/Warsaw",
 "Europe/Zagreb",
 "Europe/Brussels",
 "Europe/Copenhagen",
 "Europe/Madrid",
 "Europe/Paris",
 "Europe/Amsterdam",
 "Europe/Berlin",
 "Europe/Zurich",
 "Europe/Zurich",
 "Europe/Rome",
 "Europe/Stockholm",
 "Europe/Vienna",
 "Africa/Algiers",
 "Europe/Bucharest",
 "Africa/Cairo",
 "Europe/Helsinki",
 "Europe/Kiev",
 "Europe/Riga",
 "Europe/Sofia",
 "Europe/Tallinn",
 "Europe/Vilnius",
 "Europe/Athens",
 "Europe/Istanbul",
 "Europe/Minsk",
 "Asia/Jerusalem",
 "Africa/Harare",
 "Africa/Johannesburg",
 "Europe/Kaliningrad",
 "Europe/Moscow",
 "Europe/Moscow",
 "Europe/Volgograd",
 "Europe/Samara",
 "Asia/Kuwait",
 "Asia/Riyadh",
 "Africa/Nairobi",
 "Asia/Baghdad",
 "Asia/Tehran",
 "Asia/Muscat",
 "Asia/Muscat",
 "Asia/Baku",
 "Asia/Tbilisi",
 "Asia/Yerevan",
 "Asia/Kabul",
 "Asia/Yekaterinburg",
 "Asia/Karachi",
 "Asia/Karachi",
 "Asia/Tashkent",
 "Asia/Kolkata",
 "Asia/Kolkata",
 "Asia/Kolkata",
 "Asia/Kolkata",
 "Asia/Kathmandu",
 "Asia/Dhaka",
 "Asia/Dhaka",
 "Asia/Colombo",
 "Asia/Almaty",
 "Asia/Novosibirsk",
 "Asia/Rangoon",
 "Asia/Bangkok",
 "Asia/Bangkok",
 "Asia/Jakarta",
 "Asia/Krasnoyarsk",
 "Asia/Shanghai",
 "Asia/Chongqing",
 "Asia/Hong_Kong",
 "Asia/Urumqi",
 "Asia/Kuala_Lumpur",
 "Asia/Singapore",
 "Asia/Taipei",
 "Australia/Perth",
 "Asia/Irkutsk",
 "Asia/Ulaanbaatar",
 "Asia/Seoul",
 "Asia/Tokyo",
 "Asia/Tokyo",
 "Asia/Tokyo",
 "Asia/Yakutsk",
 "Australia/Darwin",
 "Australia/Adelaide",
 "Australia/Canberra",
 "Australia/Melbourne",
 "Australia/Sydney",
 "Australia/Brisbane",
 "Australia/Hobart",
 "Asia/Vladivostok",
 "Pacific/Guam",
 "Pacific/Port_Moresby",
 "Asia/Magadan",
 "Asia/Srednekolymsk",
 "Pacific/Guadalcanal",
 "Pacific/Noumea",
 "Pacific/Fiji",
 "Asia/Kamchatka",
 "Pacific/Majuro",
 "Pacific/Auckland",
 "Pacific/Auckland",
 "Pacific/Tongatapu",
 "Pacific/Fakaofo",
 "Pacific/Chatham",
 "Pacific/Apia"]

@Freika Freika self-assigned this May 5, 2024
@vvstubbs
Copy link

I know it must be me but I can't get the env MAP_CENTER=43.5789,-79.6583 to work I end you with no map displayed

@Freika
Copy link
Owner

Freika commented Jun 25, 2024

@vvstubbs can you try it as an array instead? Like this:

MAP_CENTER="[43.5789, -79.6583]"

@Freika
Copy link
Owner

Freika commented Jul 8, 2024

MAP_CENTER is being removed in https://github.com/Freika/dawarich/releases/tag/0.8.6, and since there are no following complaints regarding timezones, I'm closing this issue. Let me know if it's still a problem.

@Freika Freika closed this as completed Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants