from datetime import datetime
from dateutil.tz import tzlocal
import pytz


def timestamp_to_datetime(timestamp):
    """Converts timestamp to datetime string."""
    
    timeUTC = datetime.utcfromtimestamp(timestamp)
    timeLocal = pytz.utc.localize(timeUTC).astimezone(tzlocal())
    return timeLocal.strftime("%Y-%m-%d %H:%M:%S.%f%z")