Skip to content

Conversation

@tamilmani1989
Copy link
Member

What this PR does / why we need it:

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
This PR fixed the issue raised in acs-engine #3121 . It converts both reboot and file modification time to UTC .

Special notes for your reviewer:

Release note:

// Query last reboot time.
out, err := exec.Command("uptime", "-s").Output()
if err != nil {
//log.Printf("Failed to query uptime, err:%v", err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's uncomment this log

info, err := os.Stat(kvs.fileName)
if err != nil {
return time.Time{}, err
return time.Time{}.UTC(), err
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's log the error we got

@tamilmani1989 tamilmani1989 merged commit 40237b7 into Azure:master Jun 4, 2018
@tamilmani1989 tamilmani1989 deleted the utcfix branch September 17, 2018 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants