We have a requirement to store the timestamp column in PST and the same column is being used to partition the table. I see that though I have converted the column value as PST, BigQuery is still showing UTC timezone.
Is there any way we can store data in a timezone other than UTC? Here is the method which I have used to create this column.
public static Timestamp getTimestampInPST() {
ZonedDateTime nowPST = ZonedDateTime.ofInstant(Instant.now(), TimeZone.getTimeZone("PST").toZoneId());
return Timestamp.valueOf(nowPST.toLocalDateTime());
}