There is different syntax for DateTime now call in the two versions.
Working code with proper syntrax
DateTime now = RTC.now();
Not working code improper syntax
DateTime now = RTC.now;
There is different syntax for DateTime now call in the two versions.
Working code with proper syntrax
DateTime now = RTC.now();
Not working code improper syntax
DateTime now = RTC.now;