Hide seconds when sleeping

How do you hide seconds when going into sleep? I am using dc.drawText to display seconds (as it is more flexible then using the resources and I have tried setting a boolean on onEnterSleep and on onExitSleep and using this value in the onUpdate function to hide or show, but it isn't working. Any thoughts?