summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/lib/datetimeformatter.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/lib/datetimeformatter.php b/tests/lib/datetimeformatter.php
index 4b91c3a1cc7..9a50ee4a257 100644
--- a/tests/lib/datetimeformatter.php
+++ b/tests/lib/datetimeformatter.php
@@ -42,8 +42,7 @@ class DateTimeFormatter extends TestCase {
}
public function formatTimeSpanData() {
- // use the same time all the time, so the tests are reliable when time would switch
- $time = time();
+ $time = 1416916800; // Use a fixed timestamp so we dont switch days/years with the getTimestampAgo
$deL10N = new \OC_L10N('lib', 'de');
return array(
array('seconds ago', $time, $time),
@@ -81,8 +80,7 @@ class DateTimeFormatter extends TestCase {
}
public function formatDateSpanData() {
- // use the same time all the time, so the tests are reliable when time would switch
- $time = time();
+ $time = 1416916800; // Use a fixed timestamp so we dont switch days/years with the getTimestampAgo
$deL10N = new \OC_L10N('lib', 'de');
return array(
// Normal testing
a id='n96' href='#n96'>96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128