diff --git a/mwclient/client.py b/mwclient/client.py index fa42977f136a3d0dc4af3e8be79a044f9c261709..2cfec362f607368f9c2676be9ff85586481c9708 100644 --- a/mwclient/client.py +++ b/mwclient/client.py @@ -23,8 +23,8 @@ except ImportError: def parse_timestamp(t): if t == '0000-00-00T00:00:00Z': - return (0, 0, 0, 0, 0, 0, 0, 0) - return time.strptime(t, '%Y-%m-%dT%H:%M:%SZ') + return (0, 0, 0, 0, 0, 0) + return time.strptime(t, '%Y-%m-%dT%H:%M:%SZ')[:6] class WaitToken(object): def __init__(self):