fmt_datetime method for formatting timestamps and handling time zones
properly