fixing menuitem put since there was a problem with datetime that was expected to be an objects instead of a string.