How to correctly display UNIX Timestamp in Panel?

Hi
I stored a UNIX Timestamp to a sitefield:

site()->update([
	'OffersdataLastupdate' => $newPage->modified()
]);

The UNIX Timestampvalue is:

1619270457

In the Panel I wanna output this UNIX Timestamp

title: Site

sections:
  published:
    headline: Published Pages
    type: pages
    status: listed
  info:
    type: fields
    fields:
        Copyright:
          label: Copyright
          type: textarea
          size: middle
        Offersdatalastupdate:
          label: Offer.xlsx last update
          type: date
          display: YYYY-MM-DD
          disabled: true
          size: middle

Put the output is:

1621-03-06

Does anybody know what I do wrong?

Kind regards
Alain

The date field doesn’t work with Unix timestamps, only with parseable date formats.

You might want to have a look into my plugin k3-date-extended, which follows the same rationale and provides a field method epoch2date, which does what you want: GitHub - Adspectus/k3-date-extended: Kirby 3 plugin to provide additional date fields as epoch, or Date Extended | Kirby CMS resp.

@both
Thanks for the hints.
Solved it by just creating an additional field where I write the date in a human readable format :slight_smile: