Thank you for all your replays,<br><br>For correction, I'm not trying to tdo queries to my RT DB, my problem is that for some reason between RT and MySQL is a time_zone problem. my RT GUI have the correct time/date but MySQL is using UTC time, 4 hours ahead the real time.<br>
<br><div class="gmail_quote">On Wed, Jun 9, 2010 at 10:57 AM, Kevin Falcone <span dir="ltr"><<a href="mailto:falcone@bestpractical.com">falcone@bestpractical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Wed, Jun 09, 2010 at 09:01:34AM -0400, Juan N. DLC wrote:<br>
</div><div class="im">>    So then, there is no way to change this? other than move my server local time 4 hours behind<br>
>    the real time? That would affect the RT GUI too.<br>
<br>
</div>Juan<br>
<br>
As James correctly stated, RT stores dates in the database in GMT and<br>
converts them for display in the UI.  If you want to pull data<br>
directly from the DB, you will have to do your own conversion.<br>
If you are pulling from the API or the UI and getting the wrong date<br>
then that would be interesting.<br>
<font color="#888888"><br>
-kevin<br>
</font><div class="im"><br>
>    On Thu, Jun 3, 2010 at 11:46 AM, James Moseley <[1]<a href="mailto:jmoseley@corp.xanadoo.com">jmoseley@corp.xanadoo.com</a>> wrote:<br>
><br>
>      I believe RT, by design, uses the UTC timestamp when storing data in the database.<br>
><br>
>      --<br>
>      James<br>
><br>
</div><div><div></div><div class="h5">>      On Thu, Jun 3, 2010 at 10:19 AM, Juan N. DLC <[2]<a href="mailto:juann.dlc@gmail.com">juann.dlc@gmail.com</a>> wrote:<br>
><br>
>        Yes, I do have the TZ configured in my RT_SiteConfig.pm<br>
><br>
>        # Time Zone:<br>
>        Set($Timezone , 'America/Puerto_Rico');<br>
><br>
>        LIke I said, the GUI time is working fine, the problem is MySQL, when creating a ticket it<br>
>        set the Creation Time 4 hours after the real time.<br>
</div></div><br><br>
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.<br>
Buy a copy at <a href="http://rtbook.bestpractical.com" target="_blank">http://rtbook.bestpractical.com</a><br></blockquote></div><br>