Github user afs commented on the issue:

    https://github.com/apache/jena/pull/148
  
    It's a good thing it's summer where I am (British Summer Time)!
    
    My reading of https://www.w3.org/TR/xpath-functions-3/#timezone.functions 
is that conversions where there is no provided timezone use local time, 
including daylight savings time.
    
    In the tests `TimeZone.getDefault().getRawOffset()` returns the offset 
without regard for the local daylight savings time.
    
    Also allowing for timezones which are negative offsets, I came up with:
    ```
     private String getDynamicDurationString(){
            int tzOffset = TimeZone.getDefault().getOffset(new 
Date().getTime())/(1000*60) ; 
            String x = "PT"+Math.abs(tzOffset)+"M";
            if ( tzOffset < 0 )
                x = "-"+x ;
            return x ;
        }
    ```
    
    `XSDFuncOp.adjustDatetimeToTimezone` also needs this.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to