<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 227: timezone support in BASE spotty?</title><link>https://sourceforge.net/p/secureideas/bugs/227/</link><description>Recent changes to 227: timezone support in BASE spotty?</description><atom:link href="https://sourceforge.net/p/secureideas/bugs/227/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 09 Oct 2009 18:44:56 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/secureideas/bugs/227/feed.rss" rel="self" type="application/rss+xml"/><item><title>timezone support in BASE spotty?</title><link>https://sourceforge.net/p/secureideas/bugs/227/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi there&lt;/p&gt;
&lt;p&gt;We're running several snort sensors in different countries, so we run all the collectors in UTC. However, we'd like the different base frontends to show time in local time. We ensure "TZ" is set correctly and sure enough, when you enter base, "Queried on" returns the current time in the local timezone - but all the times associated with snort events are still in UTC. I'm guessing that is because the former does direct PHP time calls (and is affected by TZ) whereas the snort events come out of mysql - and are not.&lt;/p&gt;
&lt;p&gt;mysql enables you to change the timezone settings via " SET time_zone =  'Pacific/Auckland';" (assuming you've initialized mysql tables correctly). Could support for that be added to base?&lt;/p&gt;
&lt;p&gt;Perhaps something like&lt;/p&gt;
&lt;p&gt;if (!preg_match("/^$/",getenv("TZ")) { dbcall "SET time_zone =  getenv("TZ");"}&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Jason&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jason Haar</dc:creator><pubDate>Fri, 09 Oct 2009 18:44:56 -0000</pubDate><guid>https://sourceforge.net9c95f638b313f641bc85d444e80518b66844a3d4</guid></item></channel></rss>