I have an app and I will just add hour to it. I wrote a code like this:
timePush() {
var now = DateTime.now().toLocal();
var hour = now.hour;
var minute = now.minute;
var print = hour.toString();
return print;
}
The time in my country is now 03. But the output I got from the code is 00. So 3 hours back. How can I solve this problem? Thanks in advance for the help.