Comments (12)
😄
There is an api from Apple that could be used but I think the device timezone should be ok
from criticalmaps-ios.
It's great to hear you are promoting the feature 👍
When I built the feature I honestly didn't take into account international usage. I quickly had to check how the backend is returning the dateTime
and it doesn't provide a timezone unfortunately.
Bit since I know its will always be in Berlin timezone I think it should be fairly easy to convert it.
I would imagine basing it on the coordinates is tricky
from criticalmaps-ios.
Thx :)
and fair enough - I guessed that time zones are not supported in criticalmass.in ;)
I also encountered a problem when creating the city of Lisbon. So at the moment it is listed in the region "Niedersachsen" :D But I don't think it matters too much.
Regarding the time zones:
Maybe there is some easy, free API that converts coordinates into a time zone:
I did a quick search and found this one:
geoapify
Seems to be free up to 3.000 requests per day:
https://www.geoapify.com/pricing
Anyhow, thx for giving it a try :)
from criticalmaps-ios.
@ahokcool
Could you look at this please and check if my testing setup really works 😆
So basically the UNIX timestamp 1711731600
should be displayed correctly for the GMT
timezone
#500
from criticalmaps-ios.
I'm always confused with the direction of time shifting :D
That's how I see it now:
from criticalmaps-ios.
yes. that should be ok, right?
I am also confused by it 😆
from criticalmaps-ios.
Complicated :D No I don't think it's right yet :D
So on criticalmass.in I set the time to lets say 8pm.
I mean 8pm (Lisbon Time) but criticalmass.in thinks 8pm (Berlin Time)
So in the app, it actually doen't need to change it should also display 8pm (not 7pm) 🤔
So maybe for the displaying text nothing needs to be changed at all.
The only thing I realized is, that the event wasn't visible anymore up from like 1 hour before it started. I guess because of the one hour difference the app assumed that the event was already in the past...
But not sure if I got that right now :D
from criticalmaps-ios.
So wouldn't the simplest solution be to set the event to german time like 21 Uhr which would be the correct starting point in local lisbon time, right? Since 20 uhr lisbon time is 21 uhr german time.
I need to wrap my head around the api I guess to check if they really send a utc timestamp. Will take a look next week
from criticalmaps-ios.
I updated the PR.
Think it needs to be fixed to german timezone to make it work.
But I see others adding international events taking the timezone difference into account.
Not sure yet about what's best
from criticalmaps-ios.
Fyi. I merge the pr with fixed Germany Timezone since I think it's not obvious on the criticalmass.in website that times are implicitly in german timezone.
Will roll it out next month 🤞
from criticalmaps-ios.
Sorry for the late response I was quite busy...
I am not quite sure if I got it correctly but I guess you will make it work ;)
For me, the ideal situation would be to enter the event on criticalmass.in in the local time zone. So critical maps should display the upcoming event, correct since it just takes the date from the website. (I guess this is the state it used to be before I open this issue)
The only thing that should be changed is that the app should take into account that the time period in which the upcoming event will be promoted/displayed in the app should be according to the local aka device time zone.
Example:
- Event in Lisbon at 8 PM Lisbon time.
- I set up the event on critical mass.in for 8 PM (which will result in 8 PM Berlin time what I as a user don't really notice)
- Critical maps will display the upcoming event for 8 PM (without mentioning a time zone)
- The event should be visible in the app, maybe even up until half an hour after the official start: 8:30 PM Lisbon time (which should be 9:30 Berlin time)
from criticalmaps-ios.
Thanks.
So with the change I made it should be displaying the time you entered at criticalmass.in regardless of the timezone you are in.
I need to check if the logic to display an event needs some adjusting as well
from criticalmaps-ios.
Related Issues (20)
- Showing users name on chats HOT 3
- Crash on iOS 14.2.1 HOT 11
- Map doesn't update after appearance change
- [iOS 14.5] Crash at every launch HOT 2
- Enabling event notifications does not prompt for permissions HOT 3
- Road to 4.0 HOT 1
- [4.0] Do a11y check on all views HOT 2
- [4.0] Add twitter feed to
- [4.0] update MapView to use SwiftUI 2 Map (with the research if that has all the features needed)
- [4.0] Links from tweets can be tapped and will open the URL HOT 2
- Add riding/watching prompt to map
- Does The Upcoming Events/Notifications Feature Work? HOT 5
- [A11Y] Modal views need `isModal` trait
- Changing Event Settings > Event Search Radius does not change radius on map HOT 8
- Use GeoJson on the map HOT 4
- Observation Mode cannot be switched off HOT 5
- I couldn't build the packages, is it the SPM issue? HOT 5
- App can't be installed from French or Belgian app stores HOT 3
- Location tracking at all times HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from criticalmaps-ios.