Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
82 views

I have a TIMESTAMPTZ column in a Postgresql database. To my understanding, Postgresql does not preserve the timezone within a TIMESTAMPTZ column, and instead converts the given timestamp to an ...
Droid's user avatar
  • 55
2 votes
1 answer
108 views

I tried to create a generated column that adds timestamptz and interval columns, but Postgres complains that this expression is immutable: create table test ( ...
Andy's user avatar
  • 8,881
-2 votes
2 answers
58 views

I am keeping date_created in TIMESTAMPTZ date_created TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP NOT NULL, in java @CreatedDate @Column(nullable = false, updatable = false) private OffsetDateTime ...
Лейла's user avatar
2 votes
2 answers
83 views

set timezone = 'Asia/Ho_Chi_Minh'; I set times displayed to GMT+7. select '2021-02-16 09:00' AT TIME ZONE 'Asia/Singapore'; select '2021-02-16 09:00+06' AT TIME ZONE 'Asia/Singapore'; Output 2021-02-...
Han Qi's user avatar
  • 517
0 votes
0 answers
367 views

I recently upgraded my Spring Boot application from Hibernate 5 to Hibernate 6 and encountered an issue where timestamps are now being stored in UTC in my PostgreSQL database, despite my JVM and ...
Apoorva Manjunath's user avatar
0 votes
0 answers
46 views

Can someone advice, why writing data using java.sql.SQLData shifts timestamps by N hours, where N is timezone offset? Background: I have app using hibernate 6 and springboot 3, I need to call stored ...
Martin Mucha's user avatar
  • 3,267
0 votes
2 answers
1k views

I'm trying to parse some strings into Oracle's TIMESTAMP WITH TIMEZONE with to_timestamp_tz. The documentation suggests I should use TZD to parse three-letter codes like PST & PDT. However, that ...
Tianxiang Xiong's user avatar
0 votes
1 answer
6k views

NOTE: There are a few other questions that are very similar to this and which deal with the same kind of issues, but I really felt they did not articulate it well enough for me. So I am asking this ...
skeetastax's user avatar
  • 1,816
1 vote
1 answer
714 views

As explained here I'm using the below code: use sqlx::Executor; use sqlx::postgres::PgPoolOptions; let pool = PgPoolOptions::new() .after_connect(|conn, _meta| Box::pin(async move { conn....
Fred Hors's user avatar
  • 4,273
-1 votes
1 answer
96 views

I currently have some cleaned data with new columns and formatted correctly, however the clause regarding from_unixtime is stumping me. I have tried the following: from_unixtime(`time@timestamp`, '%H:%...
Joey's user avatar
  • 1
0 votes
1 answer
1k views

I have created an SQL model in snowflake that gives a several outputs among those ones, I have two columns that are the next : The first column: called last_used that gives a human readable datetime ...
baddy's user avatar
  • 417
0 votes
1 answer
172 views

I need to convert to csv date column in this format, tried so many in AZURE DATA FACTORY data flow expression builder but nothing works, can someone please help on this. Here for the last 4 digits , ...
prabhakar thati's user avatar
0 votes
0 answers
41 views

I am trying to add ride length calculation to all_trips data frame in seconds. To do that I have to use difftime() function and also convert start_time and end_time colunms to POSIXlt objects before ...
Chinonyerem Okwunakwe's user avatar
0 votes
0 answers
322 views

I have below query in spark sql sparkSession.sql(f"( SELECT * FROM {ordersTable} \ WHERE lastUpdated >= current_timestamp() - INTERVAL 24 hours)") The date-time in ...
Amol Aggarwal's user avatar
0 votes
1 answer
37 views

This is a followup question to How can I convert the time stamp with timezone info to utc time in python I was able to get the time string like this "2023-09-06T22:02:44-07:00" through ...
Ames ISU's user avatar
  • 417
0 votes
1 answer
1k views

I'm working with a BigQuery table where I got date ingested as string originally generated by the Javascript method Date();. This is what my field looks like: Sat Aug 05 2023 15:15:04 GMT-0700 (PDT) ...
Simon Breton's user avatar
  • 2,904
0 votes
0 answers
60 views

I am running queries using presto jdbc jars. There is a time difference noticed for the same query when run against presto-jdbc-0.238.jar and presto-jdbc-0.82.jar. The simple query which shows this ...
RaviKumar's user avatar
0 votes
2 answers
2k views

I have a postgres database, that stores some accounting data. The accounting data have a timestamp (with timezone). I would like to aggregate/group the accounting data by date. But the date should be ...
ST-DDT's user avatar
  • 2,727
0 votes
1 answer
35 views

I got an issue with timestamptz (timestamp with timezone). I have New York time, ex: 2pm NY EST. I will input it as 14:00:00 - 04:00 (UTC-4) because it is July now. However, when it starts from ...
Joyce's user avatar
  • 1
1 vote
0 answers
99 views

I've data stored in MongoDB collection and the timestamp column is not being read by Apache Spark correctly. I'm running Apache Spark on GCP Dataproc. Here is sample data : In Mongo : timeslot_date :...
Karan Alang's user avatar
  • 1,101
0 votes
1 answer
54 views

When running the following queries, the expected result would be the same (2023-01-16 16:39:24.824000) as the current timezone in Europe/Tirana is CEST. However, the results I receive are as shown: ...
vshtishi's user avatar
0 votes
1 answer
616 views

I'm receiving a Timestamp via API in a Timestamp(java.sql) object and after some other validations I'm sending response as a JSON containing that same timestamp value, but the format in which I sent ...
Saad Khan's user avatar
1 vote
1 answer
319 views

I have the following table CREATE TABLE IF NOT EXISTS user (id INTEGER PRIMARY KEY, insertTimestamp <- ) For the following column insertTimestamp I want to generate timestamp in this format: YYYY-...
Vishal's user avatar
  • 185
3 votes
1 answer
1k views

This is a tough one I've been fighting with for a bit. I have a table called action_events that stores event_name and timestamp: CREATE TABLE action_events ( id SERIAL PRIMARY KEY, timestamp ...
Rockster160's user avatar
  • 1,656
0 votes
1 answer
954 views

I have the following situation: A postgresql 15 database with a table with a `timestamp with time zone' as part of the primary key. A C# .NET Core 7 application using: Microsoft.EntityFrameworkCore (...
jokr's user avatar
  • 113

1
2 3 4 5
11