You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Mohd Amir (JIRA)" <ji...@apache.org> on 2019/04/08 07:07:00 UTC

[jira] [Created] (XALANJ-2623) dateTime() method does not return correct value in case of timezones having +30 minutes offset

Mohd Amir created XALANJ-2623:
---------------------------------

             Summary: dateTime() method does not return correct value in case of timezones having +30 minutes offset
                 Key: XALANJ-2623
                 URL: https://issues.apache.org/jira/browse/XALANJ-2623
             Project: XalanJ2
          Issue Type: Bug
      Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects.  Anybody can view the issue.)
            Reporter: Mohd Amir
            Assignee: Steven J. Hathaway


com.sun.org.apache.xalan.internal.lib.ExsltDatetime.dateTime() method returns string such asĀ 
{code:java}
2019-04-08T12:27:01+05:1800000
{code}
rather than
{code:java}
2019-04-08T12:27:01+05:30
{code}
The reason is that in the method implementation, the minute offset of timezone is calculated as
{code:java}
int min = offset%(60*60*1000);{code}
while it should be calculated as
{code:java}
int min = offset%(60*60*1000)/(60*1000);{code}
This issue can be reproduced in any location with timezone offset of +30 such as India (IST) or Australia (ACST).

This causes issues in xslt translation when we use transformations such as
{code:java}
...
xmlns:date="http://exslt.org/dates-and-times"
...
...
...
<xsl:variable name="date" select="date:date-time()"/>{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


Re: [jira] [Created] (XALANJ-2623) dateTime() method does not return correct value in case of timezones having +30 minutes offset

Posted by Mukul Gandhi <mu...@apache.org>.
On Wed, Apr 10, 2019 at 10:03 AM Mukul Gandhi <mu...@apache.org> wrote:

> 1) https://gitbox.apache.org/repos/asf/xalanJava.git (for,
> http://svn.apache.org/repos/asf/xalan/java/trunk/)
> 2) https://gitbox.apache.org/repos/asf/xalan-j_2_7_1_maint.git (for,
> http://svn.apache.org/repos/asf/xalan/java/branches/xalan-j_2_7_1_maint/)
>
> Similar to above, I think we need to have git repositories for Xalan C as
> well. Please decide for this as well.
>
> 3) https://gitbox.apache.org/repos/asf/xalanTest.git (for,
> http://svn.apache.org/repos/asf/xalan/test/trunk/)
> 4) https://gitbox.apache.org/repos/asf/xalan-j_2_7_x.git (for,
> http://svn.apache.org/repos/asf/xalan/test/branches/xalan-j_2_7_x/)
>

Apologies for a 2nd mail on this topic. The following are the correct
suggestions that I wish to say, instead of above text,

I think, we would require Apache git repositories perhaps as following for
XalanJ,

1) https://gitbox.apache.org/repos/asf/xalan-j.git (for,
http://svn.apache.org/repos/asf/xalan/java/trunk/)
2) https://gitbox.apache.org/repos/asf/xalan-j_2_7_1_maint.git (for,
http://svn.apache.org/repos/asf/xalan/java/branches/xalan-j_2_7_1_maint/)
3) https://gitbox.apache.org/repos/asf/xalanTest.git (for,
http://svn.apache.org/repos/asf/xalan/test/trunk/)
4) https://gitbox.apache.org/repos/asf/xalanTest-j_2_7_x.git (for,
http://svn.apache.org/repos/asf/xalan/test/branches/xalan-j_2_7_x/)

And I believe, we need Apache git repositories for Xalan C as well. Is the
link 3) above shared with Xalan C?

@Gary: Please refine above details with the team, as appropriate.





-- 
Regards,
Mukul Gandhi

Re: [jira] [Created] (XALANJ-2623) dateTime() method does not return correct value in case of timezones having +30 minutes offset

Posted by Mukul Gandhi <mu...@apache.org>.
Hi Gary,

On Mon, Apr 8, 2019 at 8:04 PM Gary Gregory <ga...@gmail.com> wrote:

> I requested the move to GitBox:
>> https://issues.apache.org/jira/browse/INFRA-18179
>>
>
> First let's discuss how to split the one svn repo into how many git
> repos...
>

Below are suggestions from my side. Please modify with the team, as
necessary.

I think, we should have perhaps following git repositories for Xalan,

1) https://gitbox.apache.org/repos/asf/xalanJava.git (for,
http://svn.apache.org/repos/asf/xalan/java/trunk/)
2) https://gitbox.apache.org/repos/asf/xalan-j_2_7_1_maint.git (for,
http://svn.apache.org/repos/asf/xalan/java/branches/xalan-j_2_7_1_maint/)

Similar to above, I think we need to have git repositories for Xalan C as
well. Please decide for this as well.

3) https://gitbox.apache.org/repos/asf/xalanTest.git (for,
http://svn.apache.org/repos/asf/xalan/test/trunk/)
4) https://gitbox.apache.org/repos/asf/xalan-j_2_7_x.git (for,
http://svn.apache.org/repos/asf/xalan/test/branches/xalan-j_2_7_x/)

Please decide exactly for Xalan test repositories (please refine points 3)
& 4) above)

I think, we might need git repository for "site" as well (as shown below,
http://svn.apache.org/repos/asf/xalan/).

My above suggestions, are based on URL patterns for git repositories for
various other Apache project (ref, https://gitbox.apache.org/repos/asf)




-- 
Regards,
Mukul Gandhi

Re: [jira] [Created] (XALANJ-2623) dateTime() method does not return correct value in case of timezones having +30 minutes offset

Posted by Gary Gregory <ga...@gmail.com>.
On Mon, Apr 8, 2019 at 10:32 AM Gary Gregory <ga...@gmail.com> wrote:

> On Mon, Apr 8, 2019 at 7:00 AM Mukul Gandhi <mu...@apache.org> wrote:
>
>> On Mon, Apr 8, 2019 at 1:20 PM Mukul Gandhi <mu...@apache.org> wrote:
>>
>>> Hi all,
>>>    I've just seen below bug report, added today to the Xalan Jira.
>>>
>>> It seems that with the new team now constituted for Xalan, in the Xalan
>>> Jira configuration project lead should be set to Gary Gregory and addition
>>> of other team members as well. This would allow timely addressability of
>>> issues reports on Xalan Jira. I also feel that, default assignee for Xalan
>>> Jira issues should be set to Unassigned.
>>>
>>> Can someone with appropriate rights do this?
>>>
>>
>> I think, Gary also wants to move the Apache Xalan project to GitBox. May
>> be, Gary would like to address the above points in relation to that. But in
>> the interim, I think above should be done as well.
>>
>
> I requested the move to GitBox:
> https://issues.apache.org/jira/browse/INFRA-18179
>

First let's discuss how to split the one svn repo into how many git repos...

Gary


> Gary
>
>
>>
>>
>>
>>
>> --
>> Regards,
>> Mukul Gandhi
>>
>

Re: [jira] [Created] (XALANJ-2623) dateTime() method does not return correct value in case of timezones having +30 minutes offset

Posted by Mukul Gandhi <mu...@apache.org>.
Hi Gary,

On Mon, Apr 8, 2019 at 8:02 PM Gary Gregory <ga...@gmail.com> wrote:

>
> I requested the move to GitBox:
> https://issues.apache.org/jira/browse/INFRA-18179
>

Thats nice.




-- 
Regards,
Mukul Gandhi

Re: [jira] [Created] (XALANJ-2623) dateTime() method does not return correct value in case of timezones having +30 minutes offset

Posted by Gary Gregory <ga...@gmail.com>.
On Mon, Apr 8, 2019 at 7:00 AM Mukul Gandhi <mu...@apache.org> wrote:

> On Mon, Apr 8, 2019 at 1:20 PM Mukul Gandhi <mu...@apache.org> wrote:
>
>> Hi all,
>>    I've just seen below bug report, added today to the Xalan Jira.
>>
>> It seems that with the new team now constituted for Xalan, in the Xalan
>> Jira configuration project lead should be set to Gary Gregory and addition
>> of other team members as well. This would allow timely addressability of
>> issues reports on Xalan Jira. I also feel that, default assignee for Xalan
>> Jira issues should be set to Unassigned.
>>
>> Can someone with appropriate rights do this?
>>
>
> I think, Gary also wants to move the Apache Xalan project to GitBox. May
> be, Gary would like to address the above points in relation to that. But in
> the interim, I think above should be done as well.
>

I requested the move to GitBox:
https://issues.apache.org/jira/browse/INFRA-18179

Gary


>
>
>
>
> --
> Regards,
> Mukul Gandhi
>

Re: [jira] [Created] (XALANJ-2623) dateTime() method does not return correct value in case of timezones having +30 minutes offset

Posted by Mukul Gandhi <mu...@apache.org>.
On Mon, Apr 8, 2019 at 1:20 PM Mukul Gandhi <mu...@apache.org> wrote:

> Hi all,
>    I've just seen below bug report, added today to the Xalan Jira.
>
> It seems that with the new team now constituted for Xalan, in the Xalan
> Jira configuration project lead should be set to Gary Gregory and addition
> of other team members as well. This would allow timely addressability of
> issues reports on Xalan Jira. I also feel that, default assignee for Xalan
> Jira issues should be set to Unassigned.
>
> Can someone with appropriate rights do this?
>

I think, Gary also wants to move the Apache Xalan project to GitBox. May
be, Gary would like to address the above points in relation to that. But in
the interim, I think above should be done as well.




-- 
Regards,
Mukul Gandhi

Re: [jira] [Created] (XALANJ-2623) dateTime() method does not return correct value in case of timezones having +30 minutes offset

Posted by Mukul Gandhi <mu...@apache.org>.
Hi all,
   I've just seen below bug report, added today to the Xalan Jira.

It seems that with the new team now constituted for Xalan, in the Xalan
Jira configuration project lead should be set to Gary Gregory and addition
of other team members as well. This would allow timely addressability of
issues reports on Xalan Jira. I also feel that, default assignee for Xalan
Jira issues should be set to Unassigned.

Can someone with appropriate rights do this?

On Mon, Apr 8, 2019 at 12:37 PM Mohd Amir (JIRA) <ji...@apache.org> wrote:

> Mohd Amir created XALANJ-2623:
> ---------------------------------
>
>              Summary: dateTime() method does not return correct value in
> case of timezones having +30 minutes offset
>                  Key: XALANJ-2623
>                  URL: https://issues.apache.org/jira/browse/XALANJ-2623
>              Project: XalanJ2
>           Issue Type: Bug
>       Security Level: No security risk; visible to anyone (Ordinary
> problems in Xalan projects.  Anybody can view the issue.)
>             Reporter: Mohd Amir
>             Assignee: Steven J. Hathaway
>





-- 
Regards,
Mukul Gandhi