- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Time of day change with Java apps?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2006 12:41 AM
10-19-2006 12:41 AM
thx in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2006 12:50 AM
10-19-2006 12:50 AM
Re: Time of day change with Java apps?
these links may help you get the answer:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1047738
and an old one:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=58414
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2006 12:56 AM
10-19-2006 12:56 AM
Re: Time of day change with Java apps?
Required patche:tztab(4) cumulative patch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2006 02:38 PM
10-19-2006 02:38 PM
Solution11.00 = PHCO_27528
11.11 = PHCO_34668
11.23 = PHCO_34669
There is no patch for 10.20 or earlier as pre-11 systems are not supported. However, the 11.00 patch can be un-tar'd and the tztab file used as is.
As for Java, since it runs on so many different platforms (and many have super-lousy timezone handling), Sun chose to handle timezones internally in the engine. Therefore, you'll need to update Java on every platform (in addition to fixing the OS).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2006 11:19 AM
12-07-2006 11:19 AM
Re: Time of day change with Java apps?
Also check:
8606420800 - YK changes in librwtool and in lib++.a
fix
Applications linked shared can just apply the aC++ Runtime patch.
If linked archive, the application must be relinked.
For librwtool the following patches exist:
[PHSS_33941/PACHRDME/English] 11.00
[PHSS_33942/PACHRDME/English] 11.11
[PHSS_34041/PACHRDME/English] 11.23
lib++.a is only fixed with the A.03.70 release.
8606430960 - DCE and Daylight Saving changes in U.S.
Fix Release : - 11.31
11.11 : - December 2006
11.23 : - December 2006
cheers,
Nick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2006 03:41 AM
12-15-2006 03:41 AM
Re: Time of day change with Java apps?
it seems that date changes of OS are not properly handled by java VM on HP-UX.
I have a HP-UX 11.11 with latest patch updates, and the very basic class show it clearly:
1) Run the class on HP-UX, and change the system date, you'll see the output continuing on the same time base as when started (+10 seconds at each print).
2) Run the same on Windows or Linux, you'll notice th system date change is taken into account by the JVM.
It seems HP-UX JVM is not behaving as on other systems.
------------------------------------
import java.util.*;
import java.text.SimpleDateFormat;
public class TestDateChange
{
public static void main(String[] args) {
SimpleDateFormat fmt = new SimpleDateFormat("yyyyMMddHHmmss");
fmt.setTimeZone(TimeZone.getTimeZone("GMT"));
for (int i=0; i < 10; i++) {
String date_ = fmt.format(Calendar.getInstance().getTime());
System.out.println("("+i+") current GMT time is : "+date_);
try {
Thread.sleep(10000);
} catch (Exception e) {}
}
}
}