I don't see anything obviously wrong with the non-working code. The RTC could be stopped, so make sure it is running when you use it.
BTW the ", DEC" modifiers are not needed in the print statements. That is default. And these declarations should be unsigned long:
const int interval1 = 100; // HC12 power-off delay time in milliseconds