> > >> A use case that I see quite a lot of is needing to do reports and other > >> calculations on data per day/hour/etc but in the user's time zone. The > >> way to do that is fairly trivial, but it's not obvious what it does so > >> reading queries becomes just a little bit more difficult. > > +1 A client encountered this exact problem last week, and I was surprised that the parameter didn't already exist.
- Re: date_trunc() in a specific time zone Paul A Jungwirth
- Re: date_trunc() in a specific time... Tom Lane
- Re: date_trunc() in a specific ... Paul A Jungwirth
- Re: date_trunc() in a specific ... Paul A Jungwirth
- Re: date_trunc() in a specific ... Paul A Jungwirth
- Re: date_trunc() in a specific ... Tom Lane
- Re: date_trunc() in a specific ... Tom Lane
- Re: date_trunc() in a specific ... Tom Lane
- Re: date_trunc() in a specific ... Vik Fearing
- Re: date_trunc() in a specific ... Andrew Gierth
- Re: date_trunc() in a specific time zone Corey Huinker
- Re: date_trunc() in a specific time zone David Fetter