# TimeBasedPartitioner always writes records to year=1970 when timestamp.field is epoch seconds (like this 1740487898), even after Cast + TimestampConverter SMT conversion

**URL:** <https://forum.confluent.io/t/timebasedpartitioner-always-writes-records-to-year-1970-when-timestamp-field-is-epoch-seconds-like-this-1740487898-even-after-cast-timestampconverter-smt-conversion/38337>\
**Category:** Managed Connectors\
**Created:** [16 April 2026 07:46 UTC](https://forum.confluent.io/t/timebasedpartitioner-always-writes-records-to-year-1970-when-timestamp-field-is-epoch-seconds-like-this-1740487898-even-after-cast-timestampconverter-smt-conversion/38337 "2026-04-16T07:46:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![helin](https://avatars.discourse-cdn.com/v4/letter/h/2bfe46/32.png) [@helin](https://forum.confluent.io/u/helin)\
**Post date:** [16 April 2026 07:46 UTC](https://forum.confluent.io/t/timebasedpartitioner-always-writes-records-to-year-1970-when-timestamp-field-is-epoch-seconds-like-this-1740487898-even-after-cast-timestampconverter-smt-conversion/38337/1 "2026-04-16T07:46:15Z")

</div>

In Confluent GCS Sink (11.0.9), records contain `date` as epoch seconds (e.g., `1773516258`), but with `timestamp.extractor=RecordField` and `timestamp.field=date`, partition paths still resolve to `1970`; we tested SMT chains (`Cast$Value` to int64 and `TimestampConverter$Value` with `unix.precision=seconds`) but behavior did not change, while using `__source_ts_ms` works correctly and partitions to 2026.

---

<div class="post-metadata">

**Author:** ![dtroiano](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/dtroiano/32/1961_2.png) [@dtroiano](https://forum.confluent.io/u/dtroiano)\
**Post date:** [4 May 2026 18:34 UTC](https://forum.confluent.io/t/timebasedpartitioner-always-writes-records-to-year-1970-when-timestamp-field-is-epoch-seconds-like-this-1740487898-even-after-cast-timestampconverter-smt-conversion/38337/2 "2026-05-04T18:34:04Z")

</div>

Can you please share your connector config with any private info `xxx`’ed out? Something might jump out in your SMT config.
