I believe this is has the same solution as here:
https://community.plotly.com/t/x-axis-formating-with-python/3342