". . .It's a version of the cock crows before the sunrise, therefore his crowing causes the sunrise. Fallacy. . ."
Post hoc, ergo propter hoc
The name in Latin means "after this therefore because of this". This describes the fallacy. An author commits the fallacy when it is assumed that because one thing follows another that the one thing was caused by the other.