While I was testing at 1.14.2, it had started to rain naturally, so I soon used a command to make the rain stop, but after 5 minutes the rain came back again, and it was like that in that infinite loop. This already happens on a map of mine, but I thought it was a bug of the map itself, because the map was of 1.13 and I had migrated to 1.14.
This is because using /weather simply posponed any existing weather, not canceling it.