This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 209493 - %<%TIME%>% shows at 1 o'clock more than date.
Summary: %<%TIME%>% shows at 1 o'clock more than date.
Status: RESOLVED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.2
Hardware: PC Linux
: P4 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-12 23:23 UTC by yuriy_lalym
Modified: 2014-11-25 09:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yuriy_lalym 2012-03-12 23:23:45 UTC
In terminal
:~> date
Вт. марта 13 01:08:14 EET 2012

Template file.h

//  Created on %<%DATE%>%, %<%TIME%>%

In the created file from this template it is had:
Created on March 13, 2012, 2:08 AM
Comment 1 soldatov 2012-03-14 15:51:30 UTC
Do you use modern java with all time zone updates?
Comment 2 yuriy_lalym 2012-03-14 21:24:41 UTC
Product Version: NetBeans IDE Dev (Build 201203120400)
Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02

This is modern?

My timezone "Europe/Kiev" and if to execute
export TZ="Europe/Kiev"
/usr/local/netbeans-dev/bin/netbeans
that the difference will be 4 hours (%<%TIME%>% shows less)
Comment 3 yuriy_lalym 2012-03-14 21:54:20 UTC
Excuse there was a mistake
My timezone "Europe/Kiev" and if to execute
export TZ="Europe/Kiev"
/usr/local/netbeans-dev/bin/netbeans

shows at 1 o'clock more

And the same result with
Java: 1.7.0_04-ea; Java HotSpot(TM) Client VM 23.0-b16

But here
Java: 1.6.0_24; OpenJDK 64-Bit Server VM 20.0-b12
shows correctly.

I understand now that your errors here aren't present.
Comment 4 henk89 2014-11-25 09:29:18 UTC
Here you can check whether the necessary timezone update was included in the latest JDK/JRE build:
http://www.oracle.com/technetwork/java/javase/tzdata-versions-138805.html

This is not an IDE bug.