AMPDS function now converts timestamps to integers before converting to DateTime index