Please review this at http://codereview.appspot.com/186056

Affected files:
  M tryton/common/date_widget.py


Index: tryton/common/date_widget.py
===================================================================
--- a/tryton/common/date_widget.py
+++ b/tryton/common/date_widget.py
@@ -163,7 +163,8 @@
             n = len(val)
             val = val.strip()
             val = val.strip('_')
-            val = val.lstrip('0')
+            if n != 4:
+                val = val.lstrip('0')
             if not val:
                 continue
             fchar = '0'



-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email: [email protected]
Jabber: [email protected]
Website: http://www.b2ck.com/
twitter: http://twitter.com/cedrickrier
identi.ca: http://identi.ca/cedrickrier

Attachment: pgpTY7Pqs4vC8.pgp
Description: PGP signature

Reply via email to