GithubHelp home page GithubHelp logo

wrong Alos 16.1° about zmanim HOT 4 CLOSED

padfodnik avatar padfodnik commented on August 15, 2024
wrong Alos 16.1°

from zmanim.

Comments (4)

KosherJava avatar KosherJava commented on August 15, 2024

@padfodnik I would need a lot more information to help. When you say it is wrong, in reference to who/what? Please provide the lat/lng, the date, the algorithm used, and what you believe the correct time is, and the source for the time you believe to be correct.
Thanks

from zmanim.

padfodnik avatar padfodnik commented on August 15, 2024

@KosherJava
zmanim_netanya.xlsx
`Location location1 = locationManager.getLastKnownLocation(provider);
String locationName = "";
double longitude = location1.getLongitude();
double latitude = location1.getLatitude();
Geocoder geocoder = new Geocoder(getApplicationContext(), Locale.getDefault());
try {
List

listAddresses = geocoder.getFromLocation(latitude, longitude, 1);
if(null!=listAddresses&&listAddresses.size()>0){
locationName = listAddresses.get(0).getLocality()+", "+listAddresses.get(0).getCountryName();
}
} catch (IOException e) {
e.printStackTrace();
}

    double elevation = 0; //optional elevation
    TimeZone timeZone = TimeZone.getDefault();
    GeoLocation geoLocation = new GeoLocation(locationName, latitude, longitude, elevation, timeZone);`

zc.getAlosHashachar() and other methods returns wrong time

from zmanim.

KosherJava avatar KosherJava commented on August 15, 2024

@padfodnik , I just tried my site and it works. Use " Asia/Jerusalem" as the timezone. Let me know if that works. Also see https://kosherjava.com/2011/11/08/outputting-zmanim-for-a-different-time-zone-with-the-the-zmanim-api/ . I did a quick test and the use of "Etc/GMT-2" and not "Etc/GMT+2" returns the correct output, but that is not the proper way to generate zmanim since at the minimum you will not have daylight savings time, and it also seems to be causing other issues. This is not a bug in the library. See
https://www.reddit.com/r/java/comments/5i3zd1/timezoneid_etcgmt2_is_actually_gmt2/ that explains the issue you are facing.

from zmanim.

padfodnik avatar padfodnik commented on August 15, 2024

@KosherJava thank you, it's my mistake!

from zmanim.

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.