All Questions
34
questions
0
votes
2
answers
489
views
Android Calendar.getTime().getTime() always returning -1 day
I creating calendar instance by providing timezone and then setting day, month and year to calendar. But when I am trying to gettime in millisecond then it always returning dateTime in millisecond -1 ...
0
votes
3
answers
404
views
How do I set the Android Calendar to nautical or military timezones
In my Android app, I use the calendar in various time zones. This way I can adjust the app operation
to local conditions.
runDate = Calendar.getInstance(); // will display tides for this date/time
...
0
votes
2
answers
450
views
not getting Dubai current time from calendar instance by using Dubai timezone [duplicate]
I have written a code to get Dubai current time. But i am getting the system current time in return
below is the code that i have been using
Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(...
1
vote
1
answer
200
views
Is there any issue with Calendar class in android?
I want to print every hour from 30 days back from current date in CDT timezone. I have changed the emulator and calendar instance timezone to CDT.
But the problem is at the 598th iteration of loop ...
2
votes
3
answers
221
views
Calendar week end days issue
I am getting a calendar instance
Calendar.getInstance()
In one mobile it is showing Saturday as weekend while in another it is showing Sunday as weekend
The timezone of both devices is same
If i ...
0
votes
2
answers
353
views
Why's my getTimeZone().getDisplayName reporting wrong offset?
I am testing my app in different timezones. I manually changed my physical phone's timezone to be London UK which is GMT+00:00
However, when I print the timezone using myCalendar.getTimeZone()....
0
votes
1
answer
98
views
calendar wrong time after timezone change
I need to get a date 5 month ago from current with the first day of month, I use this code to do it:
val date = Calendar.getInstance()
date.add(Calendar.MONTH, -5)
date.set(Calendar.DAY_OF_MONTH, 1)
...
1
vote
1
answer
973
views
Wrong Time When Importing ICS Event
I have a .ics file that has the following iCalendar code:
BEGIN:VCALENDAR
PRODID;X-RICAL-TZSOURCE=TZINFO:-//Company Name//NONSGML example.co
m//EN
CALSCALE:GREGORIAN
VERSION:2.0
METHOD:PUBLISH
...
0
votes
2
answers
752
views
Android countdown based on GMT/UTC and not the user's timezone
small problem here. I have an android countdown timer that works fine, but the issue is the countdown timer will be different between users/timezone. By this I mean, for every timezone, users of my ...
1
vote
1
answer
292
views
Getting 4 hours difference while getting while converting data in to device timezone?
I am getting the 4 hours difference on time zone from below lines of code on my device:
I am getting the time in such a way like 2018-09-30T13:45:00Z
My start and End Date is as follow: -
"...
1
vote
1
answer
762
views
Android Devices Timezone Incorrectly returns GMT (00:00) always with rawOffset of 0
The past couple of days have been a nightmare where I even considered uninstalling then reinstalling Android Studio just to see if my build was the issue.
An app i'm doing requires a timestamp in a ...
1
vote
2
answers
6k
views
Java Calendar timezone change not working as expected
I'm using the java Calendar to create some date at midnight (GMT), then change the timezone to my local timezone to make sure the requested time would be 1:00 (GMT +1).
The code below works, incl. 2 ...
0
votes
0
answers
25
views
"getAvailableIDs()" in TimeZone class of Android is not supporting 'SystemV' and many abbreviated TimeZones [duplicate]
For compatibility with JDK 1.1.x, some other three-letter time zone
IDs (such as "PST", "CTT", "AST") are also supported.
This is what Android Developer Document for TimeZone says . But the method ...
6
votes
0
answers
1k
views
Android AllDay events start or finish on the wrong day
I am working on an android app whose goal is to synchronize events between a PHP application and the smartphone. Everything work fine for “regular” events, but I have an issue with “all day” events. I ...
1
vote
0
answers
186
views
All day event instance is inserted with wrong values for start and end values
I add an All-day event into my generated calendar using CalendarProvider in my code. First I add an event in code. Then I add another event with google calendar into same calendar at the same day that ...