Change array keys
Avoid string dates warnings, fixes #5579