<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Time zone issue]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=239&amp;type=atom" />
	<updated>2015-05-12T20:43:12Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=239</id>
		<entry>
			<title type="html"><![CDATA[Re: Time zone issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=23530#p23530" />
			<content type="html"><![CDATA[<p>That is wonderful news! Thanks!</p><p>Marc</p>]]></content>
			<author>
				<name><![CDATA[Marc Paré]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20403</uri>
			</author>
			<updated>2015-05-12T20:43:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=23530#p23530</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Time zone issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=23529#p23529" />
			<content type="html"><![CDATA[<p>That was a note to the devs for populating the drop down select box with TimeZone entries directly from the php function. Probably will make it to FA v2.4 in time.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-05-12T19:57:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=23529#p23529</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Time zone issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=23528#p23528" />
			<content type="html"><![CDATA[<p>I am a little confused with your message. Are you saying that it has already been implemented and that the time-zone can be changed in FA? </p><p>Otherwise, IMO, for most users, going into the config.php or anything else is just going to increase the frustration when they are at the very beginning of using FA. It would seem to make more sense to remove the item of frustration by adding the ability to change the time-zone inside FA setup.</p><p>Marc</p>]]></content>
			<author>
				<name><![CDATA[Marc Paré]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20403</uri>
			</author>
			<updated>2015-05-12T17:06:05Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=23528#p23528</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Time zone issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=23489#p23489" />
			<content type="html"><![CDATA[<p>TimeZone can be a SysPrefs variable that is company wide with a user table override. It is handled in FA using PHP&#039;s TimeZone functions and hence it should be easily obtained from http://php.net/manual/en/timezones.php on the fly.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-05-10T18:04:48Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=23489#p23489</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Time zone issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=23482#p23482" />
			<content type="html"><![CDATA[<p>I would also be in favour of Raj&#039;s suggestion of adding a table with times zones where a user could pick her/his timezone. It would then make it unnecessary for a user to be forced to update the timezone in the config.php or php.ini or any other file. I suspect many users will not have easy access to those files nor have enough PHP knowledge to modify them.</p><p>IMO, best to do such changes inside the FrontAccounting setup. </p><p>Wonderful package. I have just installed it and will start using it soon.</p><p>Marc</p>]]></content>
			<author>
				<name><![CDATA[Marc Paré]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20403</uri>
			</author>
			<updated>2015-05-10T12:16:16Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=23482#p23482</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Time zone issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=19567#p19567" />
			<content type="html"><![CDATA[<p>Can&#039;t get this time zone issue to work properly. I am located in/near Brisbane/Australia.</p><p>My config.php files show the time zone asf:</p><p>&nbsp; &nbsp; if (!ini_get(&#039;date.timezone&#039;))<br />&nbsp; &nbsp; &nbsp; &nbsp;ini_set(&#039;date.timezone&#039;, &#039;Australia/Brisbane&#039;);</p><p>Yet the actual time zone displayed on the live site is UTC+1 or &#039;Europe/Berlin&#039;</p><p>Frontaccounting is hosted in a subdirectory of my main site. The main site displays the correct time zone, both front and and admin.</p><p>What could be wrong?</p><p>Thanks / Frank</p><p>Edit:<br />-----</p><p>Fixed it by adding </p><p>date_default_timezone_set(&#039;Australia/Brisbane&#039;);</p><p>to includes/date.functions.inc</p><p>Now shows the proper time.</p>]]></content>
			<author>
				<name><![CDATA[aquarius]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18542</uri>
			</author>
			<updated>2014-03-23T06:41:18Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=19567#p19567</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Time zone issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18600#p18600" />
			<content type="html"><![CDATA[<p>This was fairly easy by just going to your .htaccess file in your root folder and adding - php_value date.timezone &quot;Europe/Berlin&quot; according to the php timezone table here&gt;&gt;http://php.net/manual/en/timezones.php</p>]]></content>
			<author>
				<name><![CDATA[NeoCompton]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18813</uri>
			</author>
			<updated>2013-11-28T16:44:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18600#p18600</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Time zone issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=11609#p11609" />
			<content type="html"><![CDATA[<p>Although it doesn&#039;t take much, instead of manually configuring it in config.php, it would be great if you can just add a table with all time zones and user can pick the default time zone for use. Just makes it that much easier for first time users.</p><p>Nevertheless, this is one hell of a package which is really good and flexible.</p><p>Cheers!<br />Raj</p>]]></content>
			<author>
				<name><![CDATA[GlobalRaj]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=13100</uri>
			</author>
			<updated>2012-01-22T23:31:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=11609#p11609</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Time zone issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=8052#p8052" />
			<content type="html"><![CDATA[<p>@metech<br />You can set any timezone you wish in your config.php file (this is only right place for such type of configuration settings). Look into config.default.php how it is done in case when no default timezone is set in php.ini file.</p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2011-01-16T14:15:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=8052#p8052</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Time zone issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=8051#p8051" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>tonyshaus wrote:</cite><blockquote><p>This setting works just fine, but I have noted that while DD/MM/YYYY seems fine for the user, the initial log in screen displays as MM/DD/YYYY ... it switches once you log in to the correct format - a bug maybe?</p></blockquote></div><p>No. As Joe explained it is not a bug - just user date format is unknown before login. But you can select default date format used on login screen in config.php with $dflt_date_fmt variable.<br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2011-01-16T14:10:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=8051#p8051</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Time zone issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=8041#p8041" />
			<content type="html"><![CDATA[<p>I live in Melbourne Australia but use a server in North America.&nbsp; I could have offices anywhere in the world and still use the same server.&nbsp; It doesn&#039;t figure that North America automatically relates in any way to where my office is located.&nbsp; So why should the time on my login be hard coded to my server?&nbsp; It makes more sense that I should determine what time zone I choose, typically tying it to my main office if working in different time zones.&nbsp; As it happens I only have the one office and the time difference is about 19 hours.&nbsp; Makes it pretty hard when the date is a day out to keep track of things.&nbsp; When I send invoices my clients think funny things about me when they check the date.&nbsp; What makes it harder is that the only solution offered so far is to add putenv into the config.&nbsp; My server has disabled this function for security reasons and I&#039;ve actually had to modify FA where it uses it for language.</p><p>So I&#039;m guessing that I&#039;m not the only one who would like to change it to suit their circumstance so here&#039;s my solution.&nbsp; In date_functions.inc I changed:<br />if(function_exists(&quot;date_default_timezone_set&quot;) &amp;&amp; function_exists(&quot;date_default_timezone_get&quot;))<br />&nbsp; &nbsp; @date_default_timezone_set(@date_default_timezone_get());<br />to:<br />if(function_exists(&quot;date_default_timezone_set&quot;) &amp;&amp; function_exists(&quot;date_default_timezone_get&quot;))<br />&nbsp; &nbsp; @date_default_timezone_set(&#039;Australia/Melbourne&#039;);</p><p>And guess what?&nbsp; Problem solved for good.&nbsp; Even before logging in.&nbsp; I&#039;m a novice at both programming and FA but I&#039;m sure it wouldn&#039;t be hard to add a bit of functionality around this bit of code when using the setup options if someone who can do it competently agrees.</p><p>Cheers</p>]]></content>
			<author>
				<name><![CDATA[metech]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=2996</uri>
			</author>
			<updated>2011-01-13T18:07:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=8041#p8041</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Time zone issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5632#p5632" />
			<content type="html"><![CDATA[<p>No, merely a catch 22 behaviour. What came first, the egg or the hen? I guess you understand <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" />. You will have to be loged in before the internal behaviour is setup.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2010-04-14T14:45:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5632#p5632</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Time zone issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5631#p5631" />
			<content type="html"><![CDATA[<p>This setting works just fine, but I have noted that while DD/MM/YYYY seems fine for the user, the initial log in screen displays as MM/DD/YYYY ... it switches once you log in to the correct format - a bug maybe?</p><p>Cheers,<br />Tony</p>]]></content>
			<author>
				<name><![CDATA[tonyshaus]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=825</uri>
			</author>
			<updated>2010-04-14T14:33:51Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5631#p5631</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Time zone issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=763#p763" />
			<content type="html"><![CDATA[<p>Thank you again for your solution!</p>]]></content>
			<author>
				<name><![CDATA[btsui]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=192</uri>
			</author>
			<updated>2008-07-07T01:46:33Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=763#p763</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Time zone issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=758#p758" />
			<content type="html"><![CDATA[<p>Hello,</p><p>Currently FA have no mechanism to set user local time, although it is not very big issue as it is only displayed in page footer and on reports as a time of printing. If you want to use FA only from HongKong location you can simply put into config.php (eg after $power_url dfinition) the line:</p><p>putenv(&quot;TZ=Asia/HongKong&quot;);</p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2008-07-06T11:46:08Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=758#p758</id>
		</entry>
</feed>
