<?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>6607</bug_id>
          
          <creation_ts>2014-08-04 10:15:36 +0000</creation_ts>
          <short_desc>Auto-detect client locale and use for date formatting</short_desc>
          <delta_ts>2016-12-14 20:05:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Toaster</product>
          <component>toaster</component>
          <version>unspecified</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>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.3 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="brian avery">brian.avery</assigned_to>
          <cc>alejandro.delcastillo</cc>
    
    <cc>alexandru.damian</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>bill.pittman</cc>
    
    <cc>cristiana.voicu</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>44946</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-08-04 10:15:36 +0000</bug_when>
    <thetext>It seems like there is support in Django for auto-detecting the client&apos;s locale (using HTTP headers), you just need to enable it:

http://www.janosgyerik.com/detect-language-preference-in-django-and-confirm-it-works/

We should enable this and ensure all places we display dates use the SHORT_DATETIME_FORMAT etc. when formatting dates.

https://docs.djangoproject.com/en/dev/ref/templates/builtins/#date</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45052</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2014-08-08 14:48:51 +0000</bug_when>
    <thetext>Assigning to Belen as to get input on this. Currently dates, etc, are designed in locale-independent manner throughout the application, i.e. they don&apos;t match any locale definition, not even US or UK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45718</commentid>
    <comment_count>2</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2014-09-19 14:38:21 +0000</bug_when>
    <thetext>*** Bug 6713 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61719</commentid>
    <comment_count>3</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2016-04-27 12:37:55 +0000</bug_when>
    <thetext>Moving this 2.2 after receiving some complaints about it. It would be nice to fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61732</commentid>
    <comment_count>4</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2016-04-27 15:51:27 +0000</bug_when>
    <thetext>We will just update the Toaster manual to explain you should set your timezone using the Django admin interface. This is to avoid having one time stamp in the logs and file names, and another one in the UI</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69138</commentid>
    <comment_count>5</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2016-12-14 20:05:53 +0000</bug_when>
    <thetext>UI uses timezone of build machine. USE_TZ in settings.py file.

If daylight savings time causes issues, add the pytz module.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>