https://bugzilla.wikimedia.org/show_bug.cgi?id=28655

--- Comment #8 from Ryan Kaldari <[email protected]> 2011-04-24 04:22:06 
UTC ---
Regarding cases 2 and 3: Yes we could hack these to work by changing 00XX-XX to
00XX-XX-01 before it is passed to DateTime. However, that won't solve the
similar cases:
{{#time:F Y|January 0099}} -> January 1999
{{#time:F d, Y|January 12, 0099}} -> January 12, 1999
Unfortunately, there doesn't seem to be any way to trick PHP into interpreting
the years correctly in the above cases. Perhaps we should file a bug against
PHP in this case, rather than creating a half-baked workaround.

Regarding case 4: Currently we're relying on DateTime's error handling, and
since DateTime accepts it, #time accepts it. We could write some error
condition exceptions into the extension, however, if there are some common
error conditions we need to detect. Is XXXXXX-XX-XX actually common enough to
warrant creating separate error handling for it?

Regarding case 5: This seems to be fixed on trunk, although I don't know if
it's because of a change in PHP or the extension.

Regarding languages, perhaps you're right. I'll see if I can look more deeply
into how this works.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to