[
https://issues.apache.org/jira/browse/XMLBEANS-605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17534586#comment-17534586
]
PJ Fanning commented on XMLBEANS-605:
-------------------------------------
[~madubiradar] could you use latest version of xmlbeans (5.0.3)? If you still
have the issue in that version, can you provide us with the Java code that
reproduces the issue. I ran this test and it seemed to print the correct values.
{code:java}
@Test
void testGDateTime() {
XmlDateTime xmlDateTime = XmlDateTime.Factory.newInstance();
xmlDateTime.setDateValue(new Date());
GDate gdate = xmlDateTime.getGDateValue();
Date date = gdate.getDate();
System.out.println(gdate);
System.out.println(date);
} {code}
> XmlDateTime.Factory.getGDateValue() API not converting date time correctly
> during DST hours
> -------------------------------------------------------------------------------------------
>
> Key: XMLBEANS-605
> URL: https://issues.apache.org/jira/browse/XMLBEANS-605
> Project: XMLBeans
> Issue Type: Bug
> Components: XmlObject
> Reporter: Madu Biradar
> Priority: Minor
>
> Issue scenario is,
>
> For example if lab is having timezone of EET +0200
> DST starts for this timezone on - Sun 2022-03-27 02:59:59 EET
>
> Because of using getDateValue() method from xmlbeans
> Issue range of date time seen- Sun 2022-03-27 00:59:59 EET to Sun 2022-03-27
> 02:59:59 EET
> Range of eventtime is 2hrs before DST start time (Sun 2022-03-27 02:59:59
> EET) which is because of EET timezone is 2hrs more of UTC time (EET +0200)
> If datetime value is having time within this range there is issue while
> sending date from one system to another system.
>
> Example with issue time,
> date time sent - Sun 2022-03-27 02:14:59 EET When sent from one system to
> another system- Sun 2022-03-27 01:14:59
> date time sent - Sun 2022-03-27 01:14:59 EET When sent from one system to
> another system - Sun 2022-03-27 00:14:59
>
> No issue seen,
> datetime sent - Sun 2022-03-27 00:14:59 EET When from one system to another
> system - Sun 2022-03-27 00:14:59
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]