Fixing timestamp format in queries that grab data to be sent to NOC