Module:Time ago/testcases: Difference between revisions

Content deleted Content added
Forgot to make these local variables.
Clearer comment.
Line 5:
local lang = mw.language.getContentLanguage()
-- Calculate the time since/until the test dates here, so thatsince the testexpected casesoutput dois notdependent failon the current time in themost futurecases.
local currentTime = lang:formatDate( 'U' )
local jul09 = currentTime - lang:formatDate( 'U', '1 July 2009' )