Turkey decided recently (September 6, 2016 ) to permanently stay in Daylight Saving Time (DST). This act canceled the ending of DST previously scheduled for October 30, 2016, 04:00:00. Clocks were not changed.
Turkey is between +2 and +3 utc
, so now it will stay in +3.
Here you can see
https://www.timeanddate.com/time/change/turkey/ankara?year=2016
…and in the Wikipedia page, Time in Turkey, and this Hurriyet Daily News article, Turkey to implement daylight savings time year-round.
Here they discuss but I have an application in Spring Boot.
Android TimeZone Turkey GMT
cmntWrapper.setCreatedAtString(cmnt.getCreatedAt().
now(ZoneId.of(Constants.TURKEY_ZONE)).
format(DateTimeFormatter.ofPattern(Constants.DATE_TIME_FORMAT)));
this is how i take my date.
This shows the hour 13.50
now but now it is 14.50
. Because we are in +3.
What can i do?
I dont want to use utc +3 because they can say next year, "lets again use to +2-+3 switching to daylight saving concept". So i cant risk.
I cant change code in future weeks, it will stay permanent after a few weeks.
What do you suggest for permanent?
and also how can i make java? because for my test linux machine , see this please
puapp@PU-APP-01:~$ java version
The program 'java' can be found in the following packages:
* default-jre
* gcj-4.8-jre-headless
* openjdk-7-jre-headless
* gcj-4.6-jre-headless
* openjdk-6-jre-headless
Try: sudo apt-get install
puapp@PU-APP-01:~$
puapp@PU-APP-01:~$ whereis java
java: /usr/share/java
puapp@PU-APP-01:~$
puapp@PU-APP-01:~$ whereis java
java: /usr/share/java
But in local i have java.
vegan@vegan:~$ java -version
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
vegan@vegan:~$
but local is not important. that linux server is immportant.
and for our main machine, there is java
produp@Produp-app-01:~$ java -version
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
produp@Produp-app-01:~$
See Question&Answers more detail:
os