Question

I am using the following BlackBerry Java code for parsing the Date by setting its time zone too.

The Default timezone is +01:00 Europe/Belgrade Yugoslavia(YU)

I am using the following code :

Date formatter11 = new Date(HttpDateParser.parse("2013-08-02T14:00:00+04:00"));

Output comes as :

Fri Aug 02 12:00:00 Europe/Belgrade Yugoslavia(YU) 2013

which is wrong . Please let me know the error why parsing is not been correct. It comes as one hour extra .

Actually , I was concerned for DayLight event that happens with Blackberry phones ... what is that issue .

Was it helpful?

Solution

Are you sure this is one hour extra?

The time seems to saying it is 14:00, and the time zone is UTC + 4 hours, So UTC time is 10:00, Yugoslavia is 1 hour ahead of that, plus daylight saving means 12:00.

Most likely I have missed something.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top