Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 2.1.2
-
Fix Version/s: 2.3
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
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
<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>
Currently the site shows NaN for the Current time.
Issue Links
- is related to
-
MNG-2202
Improve pom to handle daylight saving changes
-
I've implemented a HTML version of the team-list that uses http://js.fleegix.org/plugins/date/date
to support "String" timezones.
See http://coffeebreaks.org/tmp/mvn-mpir-171/team-list2.html for demo
the diff to the generated files is
general drawbacks of such a solution
the drawbacks of the current demo:
Ideally the method offsetDate() should be renamed.
Let me know if that seems interesting, and I can look into changing the code to support this.