maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anthony Whitford (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MPIR-171) support "TimeZones" as a timezone
Date Mon, 06 Sep 2010 08:11:32 GMT

    [ http://jira.codehaus.org/browse/MPIR-171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=234307#action_234307
] 

Anthony Whitford commented on MPIR-171:
---------------------------------------

I second the idea of using [TimeZone|http://download.oracle.com/javase/6/docs/api/java/util/TimeZone.html]
values instead of an integer offset.  The offset idea is flawed because it does not account
for daylight savings.  For example, consider the TimeZone "{{America/Los_Angeles}}":  Los
Angeles is in the Pacific Time Zone, which is GMT-8 during Standard Time and GMT-7 during
Daylight Saving Time.  Some time zones will not adjust for daylight savings.  Finally, countries
will change their time zone rules, specifically adjusting when they start and end daylight
savings.

> support "TimeZones" as a timezone
> ---------------------------------
>
>                 Key: MPIR-171
>                 URL: http://jira.codehaus.org/browse/MPIR-171
>             Project: Maven 2.x Project Info Reports Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.1.2
>            Reporter: James Nord
>            Priority: Trivial
>
> The POM XSD defiens the TimeZone as an xs:string (although the descriptions says an integer
between -11 and 12)
> If the desctription is enforced you can not be in a timezone that is not a multiple of
1 hour away from UTC (e.g. certain parts of india)
> So the description is wrong and it's just a String.  
> So why not support a full formatted timezone such as Europe/London, then the mpir can
use funky javascript to show your actual time including any daylight saving offset. (as opposed
to a fixed offset from GMT ignoring DST changes)
> e.g. support
> {code:xml}<developers>
>   <developer>
>     <id>bob</id>
>     <name>Bob Hacker</name>
>     <email>bob@example.com</email>
>     <timezone>Europe/London</timezone>
>     <roles>
>       <role>developer</role>
>     </roles>
>   </developer>
> </developers>{code}
> Currently the site shows NaN for the Current time.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message