testnode: Fix bug on date generation