Reseting Days of the world

So i have just experienced that my worlds days resat maybe this could be fixed

Did you use the /time command or have a plugin that changes the time say to skip the night or so? Paper will not randomly reset this.