Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • G go
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • go
  • Repository
  • go
  • src
  • make.bash
Find file BlameHistoryPermalink
  • Alberto Donizetti's avatar
    cmd/dist: fix bad LC_TIME assumption in 'date' invocation · 6de53832
    Alberto Donizetti authored Nov 02, 2017
    With GOBUILDTIMELOGFILE set, make.bash logs the starting time using
    
      $ echo $(date) > file
    
    and expects to be able to read the date back with
    
      time.Parse(time.UnixDate)
    
    but in some locales the default date format is not the same as
    time.UnixDate; for example on LC_TIME="en_GB.UTF-8"
    
      $ locale date_fmt
      %a %e %b %H:%M:%S %Z %Y
    
    Fix this by setting LC_TIME=C before the date command invocation.
    
    Fixes #22541
    
    Change-Id: I59bf944bb868e2acdd816c7e35134780cdbfc6a6
    Reviewed-on: https://go-review.googlesource.com/75370
    
    
    Run-TryBot: Alberto Donizetti <alb.donizetti@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarRuss Cox <rsc@golang.org>
    Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
    6de53832
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7