Save Server Before Restart

So I have set my server to do a restart at midnight and i want a timed execute to "server.save" 2 minutes before but i don't think it worked. What would i need to add to the script file to get this right

Which block are you adding it at?  

"RealTime-Timer": {
"23:57:59": "say Server Saving!",
"23:58:00": "server.save"