<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>31391</bug_id>
          
          <creation_ts>2009-11-11 20:27:23 -0800</creation_ts>
          <short_desc>SVNTest.test_svn_apply may fail in different timezone</short_desc>
          <delta_ts>2013-01-21 19:36:15 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>65877</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Shinichiro Hamaji">hamaji</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eric</cc>
    
    <cc>mithro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>162780</commentid>
    <comment_count>0</comment_count>
    <who name="Shinichiro Hamaji">hamaji</who>
    <bug_when>2009-11-11 20:27:23 -0800</bug_when>
    <thetext>svn-apply sets TZ=PST8PDT but SVNTest.test_svn_apply doesn&apos;t change this. This can cause unittest failure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>162781</commentid>
    <comment_count>1</comment_count>
      <attachid>43028</attachid>
    <who name="Shinichiro Hamaji">hamaji</who>
    <bug_when>2009-11-11 20:28:14 -0800</bug_when>
    <thetext>Created attachment 43028
Patch v1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163481</commentid>
    <comment_count>2</comment_count>
      <attachid>43028</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-11-13 13:43:32 -0800</bug_when>
    <thetext>Comment on attachment 43028
Patch v1

Isn&apos;t there a cleaner fix w/o using os.environ?  I would think Date would have some sort of timezone adjustment methods...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163911</commentid>
    <comment_count>3</comment_count>
    <who name="Shinichiro Hamaji">hamaji</who>
    <bug_when>2009-11-16 02:41:20 -0800</bug_when>
    <thetext>If nothing changed after I did similar stuff with Python (and as far as I searched webs now), I think there are no easy way to do this. If I understand correctly, Python provides a framework to convert datetime object among different timezones, but it doesn&apos;t provide information of actual timezones. Like following blog post, we need to provide information of each timezone by ourselves.

http://uswaretech.com/blog/2009/02/understanding-datetime-tzinfo-timedelta-timezone-conversions-python/

There seems to be a library which provides information of timezones, but it seems not to be the standard library.

http://pytz.sourceforge.net/

I think my patch would be OK as prepare-ChangeLog is doing the same thing after all and it&apos;s just a test.

Another idea to fix this is adding an --date flag into prepare-ChangeLog and use this flag in this unittest. If you prefer this approach, I&apos;ll do the fix.

Of course, if I&apos;m missing something and there is a better way, I&apos;d like to use the way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>812538</commentid>
    <comment_count>4</comment_count>
    <who name="Tim &apos;mithro&apos; Ansell">mithro</who>
    <bug_when>2013-01-21 19:36:15 -0800</bug_when>
    <thetext>This bug was fixed by jochen@chromium.org in r93257
 http://trac.webkit.org/changeset/93257

*** This bug has been marked as a duplicate of bug 65877 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>43028</attachid>
            <date>2009-11-11 20:28:14 -0800</date>
            <delta_ts>2010-06-10 19:38:51 -0700</delta_ts>
            <desc>Patch v1</desc>
            <filename>bug-31391-20091112132812.patch</filename>
            <type>text/plain</type>
            <size>1327</size>
            <attacher name="Shinichiro Hamaji">hamaji</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYktpdFRvb2xzL0NoYW5nZUxvZyBiL1dlYktpdFRvb2xzL0NoYW5nZUxv
ZwppbmRleCAwYmFjNzc5Li41ZDE5ODM5IDEwMDY0NAotLS0gYS9XZWJLaXRUb29scy9DaGFuZ2VM
b2cKKysrIGIvV2ViS2l0VG9vbHMvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTIgQEAKKzIwMDktMTEt
MTEgIFNoaW5pY2hpcm8gSGFtYWppICA8aGFtYWppQGNocm9taXVtLm9yZz4KKworICAgICAgICBS
ZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBTVk5UZXN0LnRlc3Rfc3ZuX2Fw
cGx5IG1heSBmYWlsIGluIGRpZmZlcmVudCB0aW1lem9uZQorICAgICAgICBodHRwczovL2J1Z3Mu
d2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MzEzOTEKKworICAgICAgICAqIFNjcmlwdHMvbW9k
dWxlcy9zY21fdW5pdHRlc3QucHk6CisKIDIwMDktMTEtMTEgIERtaXRyeSBUaXRvdiAgPGRpbWlj
aEBjaHJvbWl1bS5vcmc+CiAKICAgICAgICAgTm90IHJldmlld2VkLCByZW1vdmluZyBkdXBsaWNh
dGUgZW50cnkgZm9yIG15c2VsZiBpbiBjb21taXR0ZXJzLnB5LgpkaWZmIC0tZ2l0IGEvV2ViS2l0
VG9vbHMvU2NyaXB0cy9tb2R1bGVzL3NjbV91bml0dGVzdC5weSBiL1dlYktpdFRvb2xzL1Njcmlw
dHMvbW9kdWxlcy9zY21fdW5pdHRlc3QucHkKaW5kZXggYTZhM2I3MS4uM2RhNGUwYiAxMDA2NDQK
LS0tIGEvV2ViS2l0VG9vbHMvU2NyaXB0cy9tb2R1bGVzL3NjbV91bml0dGVzdC5weQorKysgYi9X
ZWJLaXRUb29scy9TY3JpcHRzL21vZHVsZXMvc2NtX3VuaXR0ZXN0LnB5CkBAIC0yMTAsNyArMjEw
LDggQEAgY2xhc3MgU1ZOVGVzdChTQ01UZXN0KToKICAgICBkZWYgX3NldF9kYXRlX2FuZF9yZXZp
ZXdlcihjaGFuZ2Vsb2dfZW50cnkpOgogICAgICAgICAjIEpvZSBDb29sIG1hdGNoZXMgdGhlIHJl
dmlld2VyIHNldCBpbiBTQ01UZXN0Ll9jcmVhdGVfcGF0Y2gKICAgICAgICAgY2hhbmdlbG9nX2Vu
dHJ5ID0gY2hhbmdlbG9nX2VudHJ5LnJlcGxhY2UoJ1JFVklFV0VSX0hFUkUnLCAnSm9lIENvb2wn
KQotICAgICAgICAjIHN2bi1hcHBseSB3aWxsIHVwZGF0ZSBDaGFuZ2VMb2cgZW50cmllcyB3aXRo
IHRvZGF5J3MgZGF0ZS4KKyAgICAgICAgIyBzdm4tYXBwbHkgd2lsbCB1cGRhdGUgQ2hhbmdlTG9n
IGVudHJpZXMgd2l0aCB0b2RheSdzIGRhdGUgdXNpbmcgUERULgorICAgICAgICBvcy5lbnZpcm9u
WydUWiddID0gJ1BTVDhQRFQnCiAgICAgICAgIHJldHVybiBjaGFuZ2Vsb2dfZW50cnkucmVwbGFj
ZSgnREFURV9IRVJFJywgZGF0ZS50b2RheSgpLmlzb2Zvcm1hdCgpKQogCiAgICAgZGVmIHRlc3Rf
c3ZuX2FwcGx5KHNlbGYpOg==
</data>
<flag name="review"
          id="24685"
          type_id="1"
          status="-"
          setter="eric"
    />
          </attachment>
      

    </bug>

</bugzilla>