import pytz
from datetime import datetime


def timestamp_to_local(posix_time: int, zone="Europe/Istanbul"):
    """Return date in %Y-%m-%d %H:%M:%S format."""
    ts = posix_time / 1000.0
    tz = pytz.timezone(zone)
    return datetime.fromtimestamp(ts, tz).strftime("%Y-%m-%d %H:%M:%S")