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

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>12580</bug_id>
          
          <creation_ts>2018-03-04 14:02:06 +0000</creation_ts>
          <short_desc>Avoid use of local time in opkg-build</short_desc>
          <delta_ts>2018-11-26 16:22:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>opkg</product>
          <component>opkg</component>
          <version>0.3.6</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.4.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Peter Urbanec">bugzilla.yoctoproject.org</reporter>
          <assigned_to name="Alejandro del Castillo">alejandro.delcastillo</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>79681</commentid>
    <comment_count>0</comment_count>
    <who name="Peter Urbanec">bugzilla.yoctoproject.org</who>
    <bug_when>2018-03-04 14:02:06 +0000</bug_when>
    <thetext>Currently opkg-build converts the output of date to a formatted string in UTC and passes that as an argument to tar --mtime. This can cause issues because the reverse conversion is done with respect to the current timezone. The formatted string does not encode the correct timezone, which in the current code is UTC.

There was a patch submitted that removes the UTC option and uses local time for the string generation. A simpler method would be to feed --mtime the Unix time as an integer, rather than trying to convert to a formatted string and then parsing it back.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79682</commentid>
    <comment_count>1</comment_count>
    <who name="Peter Urbanec">bugzilla.yoctoproject.org</who>
    <bug_when>2018-03-04 14:24:23 +0000</bug_when>
    <thetext>The Unix epoch time is represented by prepending the @ symbol to the integer. For example &apos;@1234567890&apos; will be treated as &apos;Sat, 14 Feb 2009 10:31:30 +1100&apos; or &apos;2009-02-14T10:31:30+11:00&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82320</commentid>
    <comment_count>2</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2018-11-26 16:22:45 +0000</bug_when>
    <thetext>fixed on e911b8248324a198c39b508ab9e1459017ab1f22</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>