GitHub user tzolkincz opened a pull request:

    https://github.com/apache/incubator-phoenix/pull/35

    Convert timezone function

    Hi, there is simple function to convert date from one timezone to another. 
Can be used like this
    ````
    SELECT CONVERT_TZ(date, 'UTC', 'America/Adak') AS shifted_date FROM table
    ````
    This query returns shifted date by difference between these timezones.
    
    Thanks for review


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tzolkincz/incubator-phoenix tzConvert

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-phoenix/pull/35.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #35
    
----
commit af1d36fbfcfb826afd17708cde4f520d6a21ea6b
Author: Vaclav Loffelmann <vaclav.loffelm...@socialbakers.com>
Date:   2014-04-25T13:46:46Z

    convert timezone fuction

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to