Juan,
Glad that modifying a part of the source-code worked for you. Since you are making changes in the source-code, we would suggest you to test the updated code with different use cases of date-time axis to make sure it doesn’t affect other functionalities that you are using.
Also, we will revisit & reconsider this behavior in future releases.
___________
Indranil Deo
Team CanvasJS