Skip to content

Fix time() on 1.8.7#469

Merged
underscorgan merged 1 commit intopuppetlabs:masterfrom
hunner:fix_time
Jun 4, 2015
Merged

Fix time() on 1.8.7#469
underscorgan merged 1 commit intopuppetlabs:masterfrom
hunner:fix_time

Conversation

@hunner
Copy link
Copy Markdown
Contributor

@hunner hunner commented Jun 4, 2015

The time() function takes an argument of a timezone, and always returns
time in epoch format. The epoch format is the number of seconds that
have elapsed since January 1, 1970 (midnight UTC/GMT), not counting leap
seconds. This means that it is universally the same regardless of
timezones.

I don't know what the timezone argument is supposed to do, and it is not
documented. So lets just make 1.8.7 work like > 1.8.7

The time() function takes an argument of a timezone, and always returns
time in epoch format. The epoch format is the number of seconds that
have elapsed since January 1, 1970 (midnight UTC/GMT), not counting leap
seconds. This means that it is universally the same regardless of
timezones.

I don't know what the timezone argument is supposed to do, and it is not
documented. So lets just make 1.8.7 work like > 1.8.7
underscorgan pushed a commit that referenced this pull request Jun 4, 2015
@underscorgan underscorgan merged commit c69b75f into puppetlabs:master Jun 4, 2015
@hunner hunner deleted the fix_time branch April 5, 2017 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants