Forum OpenACS Q&A: Response to to_char(now(), 'YYYY') and time zones

Collapse
Posted by Dan Wickstrom on
Try this:
openacs4=# select to_char((select now() at time zone 'utc')::timestamp,'YYYY');  
to_char 
---------  
2001 
(1 row)