Comments (4)
@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.
@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
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.
@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.
@KosherJava thank you, it's my mistake!
from zmanim.
Related Issues (20)
- More `JewishCalendar` Tefila Rules / Special Days HOT 14
- Bain Hashmashos Spelled Hasmoshos
- isYomTov()
- add special Shabbasos
- check for machar_rosh_chodesh accounts for wday? HOT 1
- go-zmanim
- Yerushami Daf Yomi Trasliterated name error in order HOT 1
- Wrong formatter used on test output - LOW priority HOT 2
- In getDafYomiYerushalmi() [LastMischta, LastMesechtahMaxDaf + 1] returned for Daf 1 of Meschtas after Brachos HOT 2
- Spelling ? Kilayim כלאיים
- Flaw in logic? HOT 2
- Why use StringBuffer instead of StringBuilder? HOT 5
- Why Tfila vs. Tfilah?
- Spelling errors
- Identifying a zman?
- Add Mizmor Lesoda to TefilaRules HOT 10
- Cannot translate the parsha from the new API HOT 1
- Shushan Purim Katan is misspelled in Hebrew HOT 4
- VBA and VB6 port - vbzmanim HOT 2
- `NullPointerException` in `HebrewDateFormatter.formatDayOfWeek` due to uninitialized `weekFormat` HOT 1
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 zmanim.