fix DateTime assertion for different platform formats