Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yieldbot adapter use utils.timestamp #2848

Merged
merged 1 commit into from
Jul 19, 2018

Conversation

elljoh
Copy link
Contributor

@elljoh elljoh commented Jul 13, 2018

Type of change

  • Refactoring (no functional changes, no api changes)

Description of change

This change refactors the Yieldbot adapter to use utils.timestamp() for milliseconds past epoch timestamp values; and

  • where timestamps are used in ad markup code the utils.timestamp() implementation is used in place i.e. new Date().getTime().

Other information

It came to light that certain publishers using the Prebid.js 1.0 Yieldbot adapter have code that redefines Date.now(), which prior to this change, the Yieldbot adapter used to obtain timestamp values; therefore, one might consider this a:

  • Bugfix

The publisher code redefined Date.now() (among other functions) as follows:

Date.now=function(){return new Date}

Copy link
Collaborator

@snapwich snapwich left a comment

Choose a reason for hiding this comment

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

LGTM

@snapwich snapwich merged commit c490107 into prebid:master Jul 19, 2018
florevallatmrf pushed a commit to Marfeel/Prebid.js that referenced this pull request Sep 6, 2018
StefanWallin pushed a commit to mittmedia/Prebid.js that referenced this pull request Sep 28, 2018
ghost pushed a commit to devunrulymedia/Prebid.js that referenced this pull request Jan 30, 2019
AlessandroDG pushed a commit to simplaex/Prebid.js that referenced this pull request Mar 26, 2019
AlessandroDG pushed a commit to simplaex/Prebid.js that referenced this pull request Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants