add test for zh support
fix #38 by localizing datetime object before using it to generate permalink