0.12-stable: make `to_datetime` more robust (#10863)

 - when given a naive datetime and a pytz timezone info,
   the returned aware datetime instance had a wrong utcoffset
   due to a misuse of the pytz API
 - in general, make `to_datetime` always return aware and
   normalized datetime instances



git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/0.12-stable@11397 af82e41b-90c4-0310-8c96-b1721e28e2e2
Follow-up to r11397, in which two unit-tests had the same name.

git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/0.12-stable@11399 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.0-stable: merge from 0.12-stable the `to_datetime()` changes from #10863

git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.0-stable@11400 af82e41b-90c4-0310-8c96-b1721e28e2e2
0.12.5dev: fix functional test error upon `random_word()` collisions (#10862).

Both `TestRepoBrowse` and `TestNewFileLog` did the same
`svn_add('component1/trunk/' + random_word())`, so the second call
would fail when the same random word was generated twice.


git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/0.12-stable@11401 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.0.1dev: ignore trailing ZWSP characters at the end of a target in long form TracLinks (lhref).

From a patch contributed by Ryan J Ollos.

Closes #10865.



git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.0-stable@11407 af82e41b-90c4-0310-8c96-b1721e28e2e2
wiki: a few code clean-ups (from Ryan J Ollos patch on #10865)



git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.0-stable@11408 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.0-stable: merge from 0.12-stable

git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.0-stable@11409 af82e41b-90c4-0310-8c96-b1721e28e2e2
trunk: merge from 1.0-stable

git-svn-id: http://trac.edgewall.org/intertrac/log:/trunk@11410 af82e41b-90c4-0310-8c96-b1721e28e2e2
timeline: optionally show component of tickets.

If the `[timeline] ticket_show_component` setting is set to a true
value, each ticket entry in the timeline will show the //component//
of the ticket, prefixed to the ticket's summary.

Patch contributed by Thomas Akesson <thomas.akesson@fastmail.fm>,
thanks!

Closes #10885.


git-svn-id: http://trac.edgewall.org/intertrac/log:/trunk@11411 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.1.1dev: upgrade jQuery to [http://blog.jquery.com/2012/09/20/jquery-1-8-2-released/ 1.8.2].

Only one glitch found (and fixed), the rest seems to work fine, so far.


git-svn-id: http://trac.edgewall.org/intertrac/log:/trunk@11412 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.1.1dev: Fix batch modify: Save changes even when no fields are changed (but maybe there's a comment or workflow action) as long as there was no exception during field parsing.
Thanks to Ryan J Ollos.

Resolves #10924.

git-svn-id: http://trac.edgewall.org/intertrac/log:/trunk@11413 af82e41b-90c4-0310-8c96-b1721e28e2e2
0.12.5dev: show standardized UTC+-XX:YY name as localtz timezone name (closes #10920)



git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/0.12-stable@11414 af82e41b-90c4-0310-8c96-b1721e28e2e2
0.12.5dev: fixed datetime arithmetics and operations across DST boundaries and some unit tests for `datefmt.*` functions (closes #10864)


git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/0.12-stable@11415 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.0.1dev: merge [11415] from 0.12-stable (fix for #10864)


git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.0-stable@11416 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.1.1dev: merge [11416] from 1.0-stable (fix for #10864)


git-svn-id: http://trac.edgewall.org/intertrac/log:/trunk@11417 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.1.1dev: added unit tests for `parse_date` with relative times in the future


git-svn-id: http://trac.edgewall.org/intertrac/log:/trunk@11418 af82e41b-90c4-0310-8c96-b1721e28e2e2
0.12.5dev: fixed datetime arithmetic with `LocalTimezone` across DST boundaries (closes #10912)


git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/0.12-stable@11419 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.0.1dev: merge [11419] from 0.12-stable (fix for #10912)


git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.0-stable@11420 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.1.1dev: merge [11420] from 1.0-stable (fix for #10912)


git-svn-id: http://trac.edgewall.org/intertrac/log:/trunk@11421 af82e41b-90c4-0310-8c96-b1721e28e2e2
#10920: add unit-tests for `LocalTimezone.__str__` ... and fixes as well.

git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/0.12-stable@11422 af82e41b-90c4-0310-8c96-b1721e28e2e2