<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Yet Another TimePicker Update &#8211; DisplaySeconds</title>
	<atom:link href="http://www.michaelkbell.com/index.php/2009/04/06/yet-another-timepicker-update-displayseconds/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.michaelkbell.com/index.php/2009/04/06/yet-another-timepicker-update-displayseconds/</link>
	<description>My one-in-all blog...</description>
	<lastBuildDate>Mon, 24 May 2010 19:30:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Michael Bell</title>
		<link>http://www.michaelkbell.com/index.php/2009/04/06/yet-another-timepicker-update-displayseconds/comment-page-1/#comment-229</link>
		<dc:creator>Michael Bell</dc:creator>
		<pubDate>Mon, 24 May 2010 19:30:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.MichaelKBell.com/2009/04/06/YetAnotherTimePickerUpdateDisplaySeconds.aspx#comment-229</guid>
		<description>I have implemented your fix and placed it here and on CodePlex.

&lt;blockquote cite=&quot;#commentbody-212&quot;&gt;
&lt;strong&gt;&lt;a href=&quot;#comment-212&quot; rel=&quot;nofollow&quot;&gt;chris&lt;/a&gt; :&lt;/strong&gt;
Hi,
relating to the TwentyFour bug - 09:00 always getting 21:00, 10:00 always
getting 22:00 and so on…
don’t know if that’s really a good solution, but it worked for me:
IMHO there was just a little piece of code missing in the date property:
        ///
        /// DateTime value. Defaults to current day if not set. Otherwise, maintains a value of the date assigned plus time shown.
        ///
        [Browsable(true)]
        public DateTime Date
        {
            get
            {
                if (ViewState[&quot;Date&quot;] == null)
                    return DateTime.MinValue;
                else
                {
                    if (SelectedTimeFormat == TimeFormat.Twelve)
                    {
                        ViewState[&quot;Date&quot;] = Convert.ToDateTime(ViewState[&quot;Date&quot;]).ToShortDateString() + ” ” + Hour.ToString() + “:” + Minute.ToString() + “:” + Second.ToString() + ” ” + AmPm.ToString();
                    }
                    else
                    {
                        ViewState[&quot;Date&quot;] = Convert.ToDateTime((Convert.ToDateTime(ViewState[&quot;Date&quot;]).ToShortDateString() + ” ” + Hour.ToString() + “:” + Minute.ToString() + “:” + Second.ToString() + ” “), System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat);
                    }
                    return Convert.ToDateTime(ViewState[&quot;Date&quot;]);
                }
            }
            set
            {
                ViewState[&quot;Date&quot;] = value;
                SetTime(value);
            }
        }
maybe someone can benefit from
&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>I have implemented your fix and placed it here and on CodePlex.</p>
<blockquote cite="#commentbody-212"><p>
<strong><a href="#comment-212" rel="nofollow">chris</a> :</strong><br />
Hi,<br />
relating to the TwentyFour bug &#8211; 09:00 always getting 21:00, 10:00 always<br />
getting 22:00 and so on…<br />
don’t know if that’s really a good solution, but it worked for me:<br />
IMHO there was just a little piece of code missing in the date property:<br />
        ///<br />
        /// DateTime value. Defaults to current day if not set. Otherwise, maintains a value of the date assigned plus time shown.<br />
        ///<br />
        [Browsable(true)]<br />
        public DateTime Date<br />
        {<br />
            get<br />
            {<br />
                if (ViewState["Date"] == null)<br />
                    return DateTime.MinValue;<br />
                else<br />
                {<br />
                    if (SelectedTimeFormat == TimeFormat.Twelve)<br />
                    {<br />
                        ViewState["Date"] = Convert.ToDateTime(ViewState["Date"]).ToShortDateString() + ” ” + Hour.ToString() + “:” + Minute.ToString() + “:” + Second.ToString() + ” ” + AmPm.ToString();<br />
                    }<br />
                    else<br />
                    {<br />
                        ViewState["Date"] = Convert.ToDateTime((Convert.ToDateTime(ViewState["Date"]).ToShortDateString() + ” ” + Hour.ToString() + “:” + Minute.ToString() + “:” + Second.ToString() + ” “), System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat);<br />
                    }<br />
                    return Convert.ToDateTime(ViewState["Date"]);<br />
                }<br />
            }<br />
            set<br />
            {<br />
                ViewState["Date"] = value;<br />
                SetTime(value);<br />
            }<br />
        }<br />
maybe someone can benefit from
</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Bell</title>
		<link>http://www.michaelkbell.com/index.php/2009/04/06/yet-another-timepicker-update-displayseconds/comment-page-1/#comment-228</link>
		<dc:creator>Michael Bell</dc:creator>
		<pubDate>Mon, 24 May 2010 19:21:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.MichaelKBell.com/2009/04/06/YetAnotherTimePickerUpdateDisplaySeconds.aspx#comment-228</guid>
		<description>&lt;a href=&quot;#comment-206&quot; rel=&quot;nofollow&quot;&gt;@Jean &lt;/a&gt; 
I have implemented your fix. FOcus issues are hopefully resolved when using more than one instance in a page!</description>
		<content:encoded><![CDATA[<p><a href="#comment-206" rel="nofollow">@Jean </a><br />
I have implemented your fix. FOcus issues are hopefully resolved when using more than one instance in a page!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terry</title>
		<link>http://www.michaelkbell.com/index.php/2009/04/06/yet-another-timepicker-update-displayseconds/comment-page-1/#comment-225</link>
		<dc:creator>Terry</dc:creator>
		<pubDate>Wed, 07 Apr 2010 09:56:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.MichaelKBell.com/2009/04/06/YetAnotherTimePickerUpdateDisplaySeconds.aspx#comment-225</guid>
		<description>How to set all zero for hour, minute and second? Example: 00:00:00

I am using SelectedTimeFormat=&quot;TwentyFour&quot;.

Thanks.</description>
		<content:encoded><![CDATA[<p>How to set all zero for hour, minute and second? Example: 00:00:00</p>
<p>I am using SelectedTimeFormat=&#8221;TwentyFour&#8221;.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.michaelkbell.com/index.php/2009/04/06/yet-another-timepicker-update-displayseconds/comment-page-1/#comment-224</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Tue, 30 Mar 2010 16:14:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.MichaelKBell.com/2009/04/06/YetAnotherTimePickerUpdateDisplaySeconds.aspx#comment-224</guid>
		<description>From what I found and seems to have fixed it for me, is the fact that if the control is in &#039;24&#039; hour mode, the ampm attribute is not created, therefore when LoadPostData() executes, since it&#039;s not found, it defaults to PM.  I added the following change (locate &#039;string sAmPm&#039; in the LoadPostData() function) and has been working fine so far.

// If missing, should be in 24 hour
            string sAmPm = values[this.UniqueID + &quot;_txtAmPm&quot;];
            if (!String.IsNullOrEmpty(sAmPm))
            {
                AmPmSpec tAmPm = (values[this.UniqueID + &quot;_txtAmPm&quot;] == &quot;AM&quot;) ? AmPmSpec.AM : AmPmSpec.PM;
                if (tAmPm != AmPm)
                {
                    AmPm = tAmPm;
                    hasAmPmChange = true;
                }
            }
            else
            {
                if (int.Parse(sHour) &gt; 11)
                {
                    AmPm = AmPmSpec.PM;
                }
                else
                {
                    AmPm = AmPmSpec.AM;
                }
            }</description>
		<content:encoded><![CDATA[<p>From what I found and seems to have fixed it for me, is the fact that if the control is in &#8216;24&#8242; hour mode, the ampm attribute is not created, therefore when LoadPostData() executes, since it&#8217;s not found, it defaults to PM.  I added the following change (locate &#8217;string sAmPm&#8217; in the LoadPostData() function) and has been working fine so far.</p>
<p>// If missing, should be in 24 hour<br />
            string sAmPm = values[this.UniqueID + "_txtAmPm"];<br />
            if (!String.IsNullOrEmpty(sAmPm))<br />
            {<br />
                AmPmSpec tAmPm = (values[this.UniqueID + "_txtAmPm"] == &#8220;AM&#8221;) ? AmPmSpec.AM : AmPmSpec.PM;<br />
                if (tAmPm != AmPm)<br />
                {<br />
                    AmPm = tAmPm;<br />
                    hasAmPmChange = true;<br />
                }<br />
            }<br />
            else<br />
            {<br />
                if (int.Parse(sHour) &gt; 11)<br />
                {<br />
                    AmPm = AmPmSpec.PM;<br />
                }<br />
                else<br />
                {<br />
                    AmPm = AmPmSpec.AM;<br />
                }<br />
            }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Louie</title>
		<link>http://www.michaelkbell.com/index.php/2009/04/06/yet-another-timepicker-update-displayseconds/comment-page-1/#comment-223</link>
		<dc:creator>Louie</dc:creator>
		<pubDate>Wed, 24 Mar 2010 02:49:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.MichaelKBell.com/2009/04/06/YetAnotherTimePickerUpdateDisplaySeconds.aspx#comment-223</guid>
		<description>No more support for this timepicker? I also have the twentyfour hour problem, it alsways display 10am as 22:00. I&#039;ll just create my own and post it later.</description>
		<content:encoded><![CDATA[<p>No more support for this timepicker? I also have the twentyfour hour problem, it alsways display 10am as 22:00. I&#8217;ll just create my own and post it later.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cdw</title>
		<link>http://www.michaelkbell.com/index.php/2009/04/06/yet-another-timepicker-update-displayseconds/comment-page-1/#comment-215</link>
		<dc:creator>cdw</dc:creator>
		<pubDate>Tue, 09 Feb 2010 01:40:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.MichaelKBell.com/2009/04/06/YetAnotherTimePickerUpdateDisplaySeconds.aspx#comment-215</guid>
		<description>Has anyone successfully built a patched version that corrects the 24 Hour problem?  Would you like to make the source and/or DLL available?</description>
		<content:encoded><![CDATA[<p>Has anyone successfully built a patched version that corrects the 24 Hour problem?  Would you like to make the source and/or DLL available?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jessy</title>
		<link>http://www.michaelkbell.com/index.php/2009/04/06/yet-another-timepicker-update-displayseconds/comment-page-1/#comment-214</link>
		<dc:creator>Jessy</dc:creator>
		<pubDate>Mon, 08 Feb 2010 22:26:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.MichaelKBell.com/2009/04/06/YetAnotherTimePickerUpdateDisplaySeconds.aspx#comment-214</guid>
		<description>&lt;a href=&quot;#comment-212&quot; rel=&quot;nofollow&quot;&gt;@chris  &lt;/a&gt; 
I tied adding this to my solution but it&#039;s still not working. Can you please provide step by step instructions on where and how to add his code?

Thank you SO much in advance!</description>
		<content:encoded><![CDATA[<p><a href="#comment-212" rel="nofollow">@chris  </a><br />
I tied adding this to my solution but it&#8217;s still not working. Can you please provide step by step instructions on where and how to add his code?</p>
<p>Thank you SO much in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://www.michaelkbell.com/index.php/2009/04/06/yet-another-timepicker-update-displayseconds/comment-page-1/#comment-212</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Mon, 01 Feb 2010 20:52:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.MichaelKBell.com/2009/04/06/YetAnotherTimePickerUpdateDisplaySeconds.aspx#comment-212</guid>
		<description>Hi,
relating to the TwentyFour bug - 09:00 always getting 21:00, 10:00 always
getting 22:00 and so on...
don&#039;t know if that&#039;s really a good solution, but it worked for me:

IMHO there was just a little piece of code missing in the date property:

        /// 
        /// DateTime value. Defaults to current day if not set. Otherwise, maintains a value of the date assigned plus time shown.
        /// 
        [Browsable(true)]
        public DateTime Date
        {
            get
            {
                if (ViewState[&quot;Date&quot;] == null)
                    return DateTime.MinValue;
                else
                {
                    if (SelectedTimeFormat == TimeFormat.Twelve)
                    {
                        ViewState[&quot;Date&quot;] = Convert.ToDateTime(ViewState[&quot;Date&quot;]).ToShortDateString() + &quot; &quot; + Hour.ToString() + &quot;:&quot; + Minute.ToString() + &quot;:&quot; + Second.ToString() + &quot; &quot; + AmPm.ToString();
                    }
                    else
                    {
                        ViewState[&quot;Date&quot;] = Convert.ToDateTime((Convert.ToDateTime(ViewState[&quot;Date&quot;]).ToShortDateString() + &quot; &quot; + Hour.ToString() + &quot;:&quot; + Minute.ToString() + &quot;:&quot; + Second.ToString() + &quot; &quot;), System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat);
                    }
                    return Convert.ToDateTime(ViewState[&quot;Date&quot;]);
                }
            }
            set
            {
                ViewState[&quot;Date&quot;] = value;
                SetTime(value);
            }
        }

maybe someone can benefit from</description>
		<content:encoded><![CDATA[<p>Hi,<br />
relating to the TwentyFour bug &#8211; 09:00 always getting 21:00, 10:00 always<br />
getting 22:00 and so on&#8230;<br />
don&#8217;t know if that&#8217;s really a good solution, but it worked for me:</p>
<p>IMHO there was just a little piece of code missing in the date property:</p>
<p>        ///<br />
        /// DateTime value. Defaults to current day if not set. Otherwise, maintains a value of the date assigned plus time shown.<br />
        ///<br />
        [Browsable(true)]<br />
        public DateTime Date<br />
        {<br />
            get<br />
            {<br />
                if (ViewState["Date"] == null)<br />
                    return DateTime.MinValue;<br />
                else<br />
                {<br />
                    if (SelectedTimeFormat == TimeFormat.Twelve)<br />
                    {<br />
                        ViewState["Date"] = Convert.ToDateTime(ViewState["Date"]).ToShortDateString() + &#8221; &#8221; + Hour.ToString() + &#8220;:&#8221; + Minute.ToString() + &#8220;:&#8221; + Second.ToString() + &#8221; &#8221; + AmPm.ToString();<br />
                    }<br />
                    else<br />
                    {<br />
                        ViewState["Date"] = Convert.ToDateTime((Convert.ToDateTime(ViewState["Date"]).ToShortDateString() + &#8221; &#8221; + Hour.ToString() + &#8220;:&#8221; + Minute.ToString() + &#8220;:&#8221; + Second.ToString() + &#8221; &#8220;), System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat);<br />
                    }<br />
                    return Convert.ToDateTime(ViewState["Date"]);<br />
                }<br />
            }<br />
            set<br />
            {<br />
                ViewState["Date"] = value;<br />
                SetTime(value);<br />
            }<br />
        }</p>
<p>maybe someone can benefit from</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.michaelkbell.com/index.php/2009/04/06/yet-another-timepicker-update-displayseconds/comment-page-1/#comment-209</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Wed, 20 Jan 2010 21:19:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.MichaelKBell.com/2009/04/06/YetAnotherTimePickerUpdateDisplaySeconds.aspx#comment-209</guid>
		<description>Thank you Jean for posting your solution.
works great!</description>
		<content:encoded><![CDATA[<p>Thank you Jean for posting your solution.<br />
works great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://www.michaelkbell.com/index.php/2009/04/06/yet-another-timepicker-update-displayseconds/comment-page-1/#comment-208</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Fri, 15 Jan 2010 14:29:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.MichaelKBell.com/2009/04/06/YetAnotherTimePickerUpdateDisplaySeconds.aspx#comment-208</guid>
		<description>&lt;a href=&quot;#comment-205&quot; rel=&quot;nofollow&quot;&gt;@Ilia Lukianov &lt;/a&gt; 
Hi Ilia, could u please send the source code for fix the SelectedTimeFormat=”TwentyFour”?</description>
		<content:encoded><![CDATA[<p><a href="#comment-205" rel="nofollow">@Ilia Lukianov </a><br />
Hi Ilia, could u please send the source code for fix the SelectedTimeFormat=”TwentyFour”?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
