Date issues with full source code