Take into account timeBehaviour parameter of layer
fix build error
Taking advice into account
Merge pull request #809 from geoadmin/dev_time_behaviour

Take into account timeBehaviour parameter of layer