Comments (3)
عليكم السلام و رحمة الله و بركاته,
First of all, you have a big difference because you inversed latitude and longitude.
That should be :
let dz = {
city: "Adrar",
name: "أدرار",
**latitude**: "27.9763317",
**longitude**: "-0.4841573",
timezone: "Africa/Algiers"
};
Secondly, there's no precise method to get the exact times because they are adjusted manually by the "Algerian Ministry of Religious Affairs and Wakfs" http://marw.dz/%D9%85%D9%88%D8%A7%D9%82%D9%8A%D8%AA-%D8%A7%D9%84%D8%B5%D9%84%D8%A7%D8%A9
As you can see in this picture, they are adding different offsets every month, so you will never be able to predict that. It depends on many things, including personal choices, weather, etc..
The same thing happens with JAKIM in Malaysia and many other countries (in the Middle East, almost every country).
My advice: Don't try to get the exact times, you won't be able to. Or, change manually the adjustments in the algorithm and update it every time a new calendar is released by the ministry. If you are only dealing with Algerie that could be a solution for you.
For your information, Muslim Pro application is setting all these offsets manually for almost every country, this is why they are always synchronized with the official times. But not everyone is like Muslim Pro, a big company with many employees.
from adhan-js.
عليكم السلام و رحمة الله و بركاته,
بادئ ذي بدء ، لديك فرق كبير لأنك قلبت خطوط الطول والعرض.
التي ينبغي أن تكون :
let dz = { city: "Adrar", name: "أدرار", **latitude**: "27.9763317", **longitude**: "-0.4841573", timezone: "Africa/Algiers" };
ثانيًا ، لا توجد طريقة دقيقة للحصول على الأوقات الدقيقة لأنه يتم تعديلها يدويًا من قبل "وزارة الشؤون الدينية والأوقاف الجزائرية" http://marw.dz/٪D9٪85٪D9٪88٪D8٪A7٪D9٪ 82٪ D9٪ 8A٪ D8٪ AA-٪ D8٪ A7٪ D9٪ 84٪ D8٪ B5٪ D9٪ 84٪ D8٪ A7٪ D8٪ A9
كما ترى في هذه الصورة ، فإنهم يضيفون تعويضات مختلفة كل شهر ، لذلك لن تكون قادرًا على التنبؤ بذلك. يعتمد ذلك على أشياء كثيرة ، بما في ذلك الخيارات الشخصية والطقس وما إلى ذلك.
يحدث نفس الشيء مع JAKIM في ماليزيا والعديد من البلدان الأخرى (في الشرق الأوسط ، كل بلد تقريبًا).
نصيحتي: لا تحاول الحصول على الأوقات المحددة ، فلن تتمكن من ذلك. أو قم بتغيير التعديلات يدويًا في الخوارزمية وقم بتحديثها في كل مرة يتم فيها إصدار تقويم جديد من قبل الوزارة. إذا كنت تتعامل فقط مع Algerie ، فقد يكون هذا حلاً لك.
لمعلوماتك ، يقوم تطبيق Muslim Pro بتعيين كل هذه التعويضات يدويًا لكل بلد تقريبًا ، ولهذا السبب تتم مزامنتها دائمًا مع الأوقات الرسمية. لكن ليس الجميع مثل Muslim Pro ، وهي شركة كبيرة بها العديد من الموظفين.
شكرا لك
وجزاك الله خير ❤️🌹
from adhan-js.
from adhan-js.
Related Issues (20)
- Altitude Support HOT 1
- Prayer Ending Times HOT 1
- Understanding the functionality of nextPrayer and currentPrayer HOT 2
- Moon Phases?
- Wrong time returned HOT 1
- [suggestion]: Use `const enums` for some constant variables
- time difference for asr on Turkey HOT 1
- The use of Temporal HOT 2
- [suggestion]: Add 'Imsak' Timings HOT 4
- Host the javascript on cdnjs or similar HOT 1
- Turkish Diyanet times for Netherlands gives wrong for yatsi time
- Reason for using sth like moment.js HOT 2
- Taking elevation into account for prayer times HOT 1
- Considering elevation for Salah times HOT 21
- TypeError: Cannot read properties of undefined (reading 'getTime') HOT 1
- add adjustment settings to sunset HOT 6
- Prayer times are wrong(?) HOT 16
- The possibility of adjusting the midnight time HOT 1
- Calculation is returning prayer times for next day instead of "today" HOT 3
- Getting Default Calculation Method for Location
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 adhan-js.