<?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>77360</bug_id>
          
          <creation_ts>2012-01-30 13:00:11 -0800</creation_ts>
          <short_desc>[BlackBerry] OS(QNX) also has TM_GMTOFF, TM_ZONE, and TIMEGM</short_desc>
          <delta_ts>2012-06-13 08:11:57 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yong Li">yong.li.webkit</reporter>
          <assigned_to name="Yong Li">yong.li.webkit</assigned_to>
          <cc>milian.wolff</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>545331</commentid>
    <comment_count>0</comment_count>
    <who name="Yong Li">yong.li.webkit</who>
    <bug_when>2012-01-30 13:00:11 -0800</bug_when>
    <thetext>OS(QNX) should also define HAVE(TM_GMTOFF, TM_ZONE, and TIMEGM)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>545335</commentid>
    <comment_count>1</comment_count>
      <attachid>124585</attachid>
    <who name="Yong Li">yong.li.webkit</who>
    <bug_when>2012-01-30 13:06:56 -0800</bug_when>
    <thetext>Created attachment 124585
the patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>545347</commentid>
    <comment_count>2</comment_count>
      <attachid>124585</attachid>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2012-01-30 13:12:30 -0800</bug_when>
    <thetext>Comment on attachment 124585
the patch

Looks good.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>545432</commentid>
    <comment_count>3</comment_count>
      <attachid>124585</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-01-30 14:48:25 -0800</bug_when>
    <thetext>Comment on attachment 124585
the patch

Clearing flags on attachment: 124585

Committed r106290: &lt;http://trac.webkit.org/changeset/106290&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>545433</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-01-30 14:48:29 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>648006</commentid>
    <comment_count>5</comment_count>
    <who name="Milian Wolff">milian.wolff</who>
    <bug_when>2012-06-13 07:50:02 -0700</bug_when>
    <thetext>can someone clarify how this is supposed to work, or which QNX version should support this?

For QNX6 I can only find timegm in nbutil.h which would also mean we need to link against nbutil.so to get that in.

As-Is the patch that has landed here breaks compilation of QtWebKit for QNX6 for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>648030</commentid>
    <comment_count>6</comment_count>
    <who name="Yong Li">yong.li.webkit</who>
    <bug_when>2012-06-13 08:11:57 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; can someone clarify how this is supposed to work, or which QNX version should support this?
&gt; 
&gt; For QNX6 I can only find timegm in nbutil.h which would also mean we need to link against nbutil.so to get that in.
&gt; 
&gt; As-Is the patch that has landed here breaks compilation of QtWebKit for QNX6 for me.

TIMEGM isn&apos;t important thing. We saw this issue. And it is fixed for playbook 2.x

You can just cherry-pick this patch:

commit 98aacd9c57a8f38261e9fa4554f2cc7e8343030c
Author: Ming Xie &lt;mxie@rim.com&gt;
Date:   Thu Feb 2 13:50:41 2012 -0500

    2012-02-02  Ming Xie  &lt;mxie@rim.com&gt;
    
            Disable HAVE_TIMEGM in *GR2.0* build only.
    
            Reviewed by Yong Li.
    
            * wtf/Platform.h:

# ===============================================
#   COMMIT DIFF(S)
# ===============================================

# ===============================================
#   Revision 1: webkit/98aacd9c57a8f38261e9fa4554f2cc7e8343030c
# ===============================================
98aacd9c57a8f38261e9fa4554f2cc7e8343030c
diff --git a/Source/JavaScriptCore/wtf/Platform.h b/Source/JavaScriptCore/wtf/Platform.h
index 2ef394a..f169fbf 100644
--- a/Source/JavaScriptCore/wtf/Platform.h
+++ b/Source/JavaScriptCore/wtf/Platform.h
@@ -673,8 +673,10 @@
     &amp;&amp; !OS(ANDROID)
 #define HAVE_TM_GMTOFF 1
 #define HAVE_TM_ZONE 1
+#if !OS(QNX)
 #define HAVE_TIMEGM 1
 #endif
+#endif
 
 #if OS(DARWIN)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>124585</attachid>
            <date>2012-01-30 13:06:56 -0800</date>
            <delta_ts>2012-01-30 14:48:25 -0800</delta_ts>
            <desc>the patch</desc>
            <filename>77360.patch</filename>
            <type>text/plain</type>
            <size>1021</size>
            <attacher name="Yong Li">yong.li.webkit</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cgYi9Tb3VyY2UvSmF2
YVNjcmlwdENvcmUvQ2hhbmdlTG9nCmluZGV4IGI4ODhmMjQuLjVmMjkxZmIgMTAwNjQ0Ci0tLSBh
L1NvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL0phdmFTY3JpcHRD
b3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE1IEBACisyMDEyLTAxLTMwICBZb25nIExpICA8eW9s
aUByaW0uY29tPgorCisgICAgICAgIFtCbGFja0JlcnJ5XSBPUyhRTlgpIGFsc28gaGFzIFRNX0dN
VE9GRiwgVE1fWk9ORSwgYW5kIFRJTUVHTQorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9y
Zy9zaG93X2J1Zy5jZ2k/aWQ9NzczNjAKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9P
UFMhKS4KKworICAgICAgICBUdXJuIG9uIEhBVkUoVE1fR01UT0ZGKSwgSEFWRShUTV9aT05FKSwg
YW5kIEhBVkUoVElNRUdNKQorICAgICAgICBmb3IgT1MoUU5YKS4KKworICAgICAgICAqIHd0Zi9Q
bGF0Zm9ybS5oOgorCiAyMDEyLTAxLTIwICBZb25nIExpICA8eW9saUByaW0uY29tPgogCiAgICAg
ICAgIFtCbGFja0JlcnJ5XSBJbXBsZW1lbnQgT1NBbGxvY2F0b3I6OmNvbW1pdC9kZWNvbW1pdC4K
ZGlmZiAtLWdpdCBhL1NvdXJjZS9KYXZhU2NyaXB0Q29yZS93dGYvUGxhdGZvcm0uaCBiL1NvdXJj
ZS9KYXZhU2NyaXB0Q29yZS93dGYvUGxhdGZvcm0uaAppbmRleCA5MGRlYmQ5Li40NzlmYWY2IDEw
MDY0NAotLS0gYS9Tb3VyY2UvSmF2YVNjcmlwdENvcmUvd3RmL1BsYXRmb3JtLmgKKysrIGIvU291
cmNlL0phdmFTY3JpcHRDb3JlL3d0Zi9QbGF0Zm9ybS5oCkBAIC02NjksNyArNjY5LDcgQEAKICNl
bmRpZgogI2VuZGlmCiAKLSNpZiAhT1MoV0lORE9XUykgJiYgIU9TKFNPTEFSSVMpICYmICFPUyhR
TlgpIFwKKyNpZiAhT1MoV0lORE9XUykgJiYgIU9TKFNPTEFSSVMpIFwKICAgICAmJiAhT1MoUlZD
VCkgXAogICAgICYmICFPUyhBTkRST0lEKQogI2RlZmluZSBIQVZFX1RNX0dNVE9GRiAxCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>