Code Monkey home page Code Monkey logo

Comments (3)

korbav avatar korbav commented on September 24, 2024 1

عليكم السلام و رحمة الله و بركاته,

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

image

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.

rn0x avatar rn0x commented on September 24, 2024 1

عليكم السلام و رحمة الله و بركاته,

بادئ ذي بدء ، لديك فرق كبير لأنك قلبت خطوط الطول والعرض.

التي ينبغي أن تكون :

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.

rn0x avatar rn0x commented on September 24, 2024

@z3bi
@sgtsquiggs

from adhan-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.