Looked into this previously, but need more work as PHP locale settings play a part so may need to dig more to solve it.