Evening compliment during afternoon



  • Platform: Raspberry Pi Zero W, Linux pi 4.9.59+ #1047 Sun Oct 29 11:47:10 GMT 2017 armv6l GNU/Linux

    Node Version: v.4.2.1

    MagicMirror Version: Latest (2018-01-01)

    Description: currently it’s 15:30 in my local time, and it says the same on the MM. However, compliment is showing a string from the evening: [ ] array.

    Steps to Reproduce: explained in description.

    Expected Results: I expected not to see evening compliment as code says that it’s evening after 17:00.

    Actual Results: explained in description.

    Configuration:

    {
                            module: "compliments",
                            position: "bottom_bar",
                            config: {
                                    updateInterval: 12000,
                                    compliments: {
                                            anytime: [
                                                    "anytime text"
                                            ],
                                            rain: [
                                                    "rain text"
                                            ],
                                            morning: [
                                                    "morning test"
                                            ],
                                            evening: ["evening test"]
                                    }
                            }
                    },
    

    Additional info: I don’t know if it was the same before the update. Also, “date” in terminal returns afternoon time too.

    How to debug this? How to find out what number is behind “hour” variable at that moment?


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.