<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Discussion on eBay timezone fix | Userscripts.org</title>
    <link>http://userscripts.org/scripts/show/7202</link>
    <description>Recent comments on userscript: eBay timezone fix</description>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>fixed for me , replied by ynzheng</title>
      <description>&lt;p&gt;//May-03-09 12:15:00 PDT
&lt;br /&gt;1.replace the regex expression:
&lt;br /&gt;var foo = str.match(/(\S\S\S)-(\d\d)-(\d\d)(\s+|\s+at\s+)(\d\d:\d\d:\d\d)\s+PST/);&lt;/p&gt;

&lt;p&gt;to:
&lt;br /&gt;var foo = str.match(/(\S\S\S)-(\d\d)-(\d\d)(\s+|\s+at\s+)(\d\d:\d\d:\d\d)\s+(PDT|PST)/);&lt;/p&gt;

&lt;p&gt;//May 03 2009 12:15:00 PDT
&lt;br /&gt;2.replace the Date constructor:
&lt;br /&gt;var d = new Date(foo[1] + ' ' + foo[2] + ' 20' + foo[3] + ' ' + foo[5] + &quot; PST&quot;);&lt;/p&gt;

&lt;p&gt;to:
&lt;br /&gt;var d = new Date(foo[1] + ' ' + foo[2] + ' 20' + foo[3] + ' ' + foo[5] + &quot; &quot; + foo[6]);&lt;/p&gt;

&lt;p&gt;//Mon May 04 2009 03:15:00 GMT+0800
&lt;br /&gt;3.replace this:
&lt;br /&gt;var tzinfo = d.toString().match(/\((\S+)\)/);&lt;/p&gt;

&lt;p&gt;to:
&lt;br /&gt;var tzinfo = d.toString().match(/(\S\S\S\+\d\d\d\d)/);&lt;/p&gt;

&lt;p&gt;now it works for me ...&lt;/p&gt;

&lt;p&gt;cheers&lt;/p&gt;</description>
      <pubDate>Sun, 03 May 2009 16:00:21 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:26105:117417</guid>
      <author>ynzheng</author>
      <link>http://userscripts.org/posts/117417</link>
    </item>
    <item>
      <title>Archived Comments, replied by thewolrab</title>
      <description>&lt;p&gt;You know, I always wondered why eBay never provided the option to select your timezone. Quite an obvious thing to do really.&lt;/p&gt;

&lt;p&gt;Thank you =]&lt;/p&gt;</description>
      <pubDate>Thu, 19 Jun 2008 04:58:28 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17864:78585</guid>
      <author>thewolrab</author>
      <link>http://userscripts.org/posts/78585</link>
    </item>
    <item>
      <title>Archived Comments, replied by Jeremiah Jones</title>
      <description>&lt;p&gt;I feel for Tommy, really.&lt;/p&gt;

&lt;p&gt;Thanks so much for a great script. I appreciate the addons, too.&lt;/p&gt;</description>
      <pubDate>Fri, 04 Jan 2008 16:33:45 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17864:78586</guid>
      <author>Jeremiah Jones</author>
      <link>http://userscripts.org/posts/78586</link>
    </item>
    <item>
      <title>Archived Comments, replied by bestfacts</title>
      <description>&lt;p&gt;There's a new firefox addon (myTimeZone for eBay) which works for any time zone and automatically adjusts for DST:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://addons.update.mozilla.org/en-US/firefox/addon/5497&quot;&gt;https://addons.update.mozilla.org/en-US/firefox...&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 12 Aug 2007 20:12:32 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17864:78587</guid>
      <author>bestfacts</author>
      <link>http://userscripts.org/posts/78587</link>
    </item>
    <item>
      <title>Archived Comments, replied by Jacob Ford</title>
      <description>&lt;p&gt;This is a great idea, but how do I change it to my time zone (Eastern Time with daylight savings)? Any help is greatly appreciated.&lt;/p&gt;</description>
      <pubDate>Thu, 28 Jun 2007 14:45:10 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17864:78588</guid>
      <author>Jacob Ford</author>
      <link>http://userscripts.org/posts/78588</link>
    </item>
    <item>
      <title>Archived Comments, replied by mark bryan yu</title>
      <description>&lt;p&gt;if you want to retain eBay's date/time format mmm-dd-yy, add this function:&lt;/p&gt;

&lt;p&gt;function convertMonth(x)
&lt;br /&gt;{
&lt;br /&gt;	if (x == 1)
&lt;br /&gt;		return &quot;Jan&quot;;
&lt;br /&gt;	if (x == 2)
&lt;br /&gt;		return &quot;Feb&quot;;
&lt;br /&gt;	if (x == 3)
&lt;br /&gt;		return &quot;Mar&quot;;
&lt;br /&gt;	if (x == 4)
&lt;br /&gt;		return &quot;Apr&quot;;
&lt;br /&gt;	if (x == 5)
&lt;br /&gt;		return &quot;May&quot;;
&lt;br /&gt;	if (x == 6)
&lt;br /&gt;		return &quot;Jun&quot;;
&lt;br /&gt;	if (x == 7)
&lt;br /&gt;		return &quot;Jul&quot;;
&lt;br /&gt;	if (x == 8)
&lt;br /&gt;		return &quot;Aug&quot;;
&lt;br /&gt;	if (x == 9)
&lt;br /&gt;		return &quot;Sep&quot;;
&lt;br /&gt;	if (x == 10)
&lt;br /&gt;		return &quot;Oct&quot;;
&lt;br /&gt;	if (x == 11)
&lt;br /&gt;		return &quot;Nov&quot;;
&lt;br /&gt;	if (x == 12)
&lt;br /&gt;		return &quot;Dec&quot;;
&lt;br /&gt;}&lt;/p&gt;

&lt;p&gt;and change this line:&lt;/p&gt;

&lt;p&gt;var dstr = d.getFullYear() + '-' + nf(d.getMonth() + 1) + '-' + nf(d.getDate()) + ' ' + nf(d.getHours()) + ':' + nf(d.getMinutes()) + ':' + nf(d.getSeconds()) + &quot; &quot; + tzinfo[1];&lt;/p&gt;

&lt;p&gt;to &lt;/p&gt;

&lt;p&gt;var dstr = convertMonth(d.getMonth() + 1) + '-' + nf(d.getDate()) + '-' + String(d.getFullYear()).substring(2) + ' ' + nf(d.getHours()) + ':' + nf(d.getMinutes()) + ':' + nf(d.getSeconds()) + &quot; &quot; + tzinfo[1];&lt;/p&gt;</description>
      <pubDate>Mon, 26 Mar 2007 04:48:35 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17864:78589</guid>
      <author>mark bryan yu</author>
      <link>http://userscripts.org/posts/78589</link>
    </item>
    <item>
      <title>Archived Comments, replied by mark bryan yu</title>
      <description>&lt;p&gt;Regarding Tommy's bug report. The script doesn't handle Day Light Saving Time and PST is hardcoded in the script. To fix this:&lt;/p&gt;

&lt;p&gt;replace the regex expression to:&lt;/p&gt;

&lt;p&gt;var foo = str.match(/(\S\S\S)-(\d\d)-(\d\d)(\s+|\s+at\s+)(\d\d:\d\d:\d\d)\s+(PDT|PST)/);&lt;/p&gt;

&lt;p&gt;and replace the Date constructor to:&lt;/p&gt;

&lt;p&gt;var d = new Date(foo[1] + ' ' + foo[2] + ' 20' + foo[3] + ' ' + foo[5] + &quot; &quot; + foo[6]);&lt;/p&gt;

&lt;p&gt;hope this helps&lt;/p&gt;</description>
      <pubDate>Mon, 26 Mar 2007 04:27:58 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17864:78590</guid>
      <author>mark bryan yu</author>
      <link>http://userscripts.org/posts/78590</link>
    </item>
    <item>
      <title>Archived Comments, replied by Tommy Jensen</title>
      <description>&lt;p&gt;Great idea and a welcome addon but It really doesn't change anything for me. All times on ebay.com are still in PDT.&lt;/p&gt;</description>
      <pubDate>Tue, 13 Mar 2007 11:50:23 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17864:78591</guid>
      <author>Tommy Jensen</author>
      <link>http://userscripts.org/posts/78591</link>
    </item>
    <item>
      <title>Archived Comments, replied by Jesse Andrews</title>
      <description>&lt;p&gt;The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)&lt;/p&gt;</description>
      <pubDate>Wed, 17 Nov 2004 01:05:54 +0000</pubDate>
      <guid isPermaLink="false">userscripts.org:17864:78584</guid>
      <author>Jesse Andrews</author>
      <link>http://userscripts.org/posts/78584</link>
    </item>
  </channel>
</rss>
