Hi,
Exporting a spatially enabled dataframe (SDF) to AGOL using spatial.to_featurelayer with a datetime column strips the time as it creates a shapefile and due to the way shapefiles handle dates. Alternative is to create a str column using strftime or to use the more cumbersome method of creating a csv item and publishing that, completely bypassing the SDF.
Could I suggest:
- Adding a check to to_featurelayer, and either returning a warning or converting the datetime to string
- Adding a warning to the documentation
Code to demonstrate the issue attached as .ypnb.
Best wishes
M.