<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>UTC &#8211; stoimen&#039;s web log</title>
	<atom:link href="/tag/utc/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>on web development</description>
	<lastBuildDate>Tue, 13 Feb 2018 08:18:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>Flex 3 DateChooser UTC issue</title>
		<link>/2009/05/20/flex-3-datechooser-utc-issue/</link>
		<comments>/2009/05/20/flex-3-datechooser-utc-issue/#comments</comments>
		<pubDate>Wed, 20 May 2009 06:11:21 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[flex 3]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[datechooser]]></category>
		<category><![CDATA[getTime]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[unix timestamp]]></category>
		<category><![CDATA[UTC]]></category>

		<guid isPermaLink="false">/?p=572</guid>
		<description><![CDATA[What I intend to do The task can be described as it is. There&#8217;s a Flex 3 DateChooser component integrated with a custom timeline component. The problem occurs when exporting the data from the flash to the browser. Than I write the unix timestamp to the url of the browser. Of course I&#8217;m using date.getTime() &#8230; <a href="/2009/05/20/flex-3-datechooser-utc-issue/" class="more-link">Continue reading <span class="screen-reader-text">Flex 3 DateChooser UTC issue</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2009/03/01/download-custom-flex-3-datechooser-2/" rel="bookmark" title="Download Custom Flex 3 DateChooser">Download Custom Flex 3 DateChooser </a></li>
<li><a href="/2009/03/01/flex-3-custom-datechooser-2/" rel="bookmark" title="Flex 3 Custom DateChooser">Flex 3 Custom DateChooser </a></li>
<li><a href="/2009/02/06/flex-3-custom-preloader/" rel="bookmark" title="Flex 3 Custom Preloader">Flex 3 Custom Preloader </a></li>
<li><a href="/2009/04/25/flex-3-hslider-thumb-gap-issue/" rel="bookmark" title="Flex 3 HSlider thumb gap issue">Flex 3 HSlider thumb gap issue </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>What I intend to do</h2>
<p style="text-align: left;">The task can be described as it is. There&#8217;s a Flex 3 DateChooser component integrated with a custom timeline component. The problem occurs when exporting the data from the flash to the browser. Than I write the unix timestamp to the url of the browser. Of course I&#8217;m using date.getTime() in Flex.</p>
<p style="text-align: center;"><a href="/wp-content/uploads/2009/05/datechooser-issue.png"><img class="aligncenter size-medium wp-image-573" title="datechooser-issue" src="/wp-content/uploads/2009/05/datechooser-issue-300x120.png" alt="" width="430" srcset="/wp-content/uploads/2009/05/datechooser-issue-300x120.png 300w, /wp-content/uploads/2009/05/datechooser-issue.png 647w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<h2>getTime()</h2>
<p>Applying getTime() to any object of type Date in Flex results in a unix timestamp with included milliseconds. Of course the server side technology which in our case is PHP should devide by 1000 to remove the milliseconds. <span id="more-572"></span></p>
<h2>The problem</h2>
<p>The database and the server side script language use a UTC dates. The problem is the Flash functions getFullYear, getMonth, etc. don&#8217;t deal with UTC. Of course you can switch to getUTCFullYear, getUTCMonth, etc. but than comes the real problem.</p>
<h2>The DateChooser &#8230;</h2>
<p>When you&#8217;re using dates in Flex with no UTC in mind everything&#8217;s OK. You have the DateChooser component. Clicking on the 16th of May 2009 results in</p>
<blockquote><p>Alert.show(date.toString());</p></blockquote>
<p>which prints 16th of May 2009, which appears to be OK. Yes but the date.getTime() is still using the non-UTC time. If you&#8217;re using UTC, and suddenly print that kind of a message:</p>
<blockquote><p>Alert.show(date.toUTCString());</p></blockquote>
<p>Then for 16th of May 2009 you receive 15th of May 2009. Which is really bad.</p>
<h2>No workaround</h2>
<p>Unfortunately I didn&#8217;t find any workaround till now. I hope I&#8217;ll soon.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2009/03/01/download-custom-flex-3-datechooser-2/" rel="bookmark" title="Download Custom Flex 3 DateChooser">Download Custom Flex 3 DateChooser </a></li>
<li><a href="/2009/03/01/flex-3-custom-datechooser-2/" rel="bookmark" title="Flex 3 Custom DateChooser">Flex 3 Custom DateChooser </a></li>
<li><a href="/2009/02/06/flex-3-custom-preloader/" rel="bookmark" title="Flex 3 Custom Preloader">Flex 3 Custom Preloader </a></li>
<li><a href="/2009/04/25/flex-3-hslider-thumb-gap-issue/" rel="bookmark" title="Flex 3 HSlider thumb gap issue">Flex 3 HSlider thumb gap issue </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/05/20/flex-3-datechooser-utc-issue/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
