• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

disable historical daylight saving support

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I am wondering if I can disable historical daylight saving from JVM, it is causing dates problems.

Here is an Example of my investigation, I am in Jordan /Middle East and I am Africa/Cairo Timezone

I am just trying print dates System.out.println(new Date()); the problem is in the hour of the date.

Using Java 1.4.2 (Current Machine Time 11 AM)
Date****Africa/Cairo +02:00*****GMT+02:00*******GMT+3:00
Jan_____11______________________11______________12
Feb_____11______________________11______________12
Mar_____11______________________11______________12
27-Apr___11______________________11______________12
28-Apr___12______________________11______________12
29-Apr___12______________________11______________12
30-Apr___12______________________11______________12
1-May___12______________________11______________12
2-May___12______________________11______________12
3-May___12______________________11______________12
4-May___12______________________11______________12
5-May___11______________________10______________11
May_____11______________________10______________11
Jun_____11______________________10______________11
Jul_____11______________________10______________11
Aug_____11______________________10______________11
26-Sep__11______________________10______________11
27-Sep__12______________________11______________12
28-Sep__12______________________11______________12
29-Sep__11______________________11______________12
Oct_____11______________________11______________12
Nov_____11______________________11______________12
Dec_____11______________________11______________12

[ April 05, 2006: Message edited by: Wasim Ayoubi ]

[ April 05, 2006: Message edited by: Wasim Ayoubi ]

[ April 05, 2006: Message edited by: Wasim Ayoubi ]
[ April 05, 2006: Message edited by: Wasim Ayoubi ]
 
Wasim Ayoubi
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have made many changes to make it possible to view as a table, I have a question why don't Javaranch Support Images and Tables
Thanx
 
I love a good mentalist. And so does this tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic