fix date issue for both squeeze and wheezy