Skip to content

Commit 529bbf1

Browse files
committed
Update strtotime test locutusjs#4
Added timezone, so test will return the same result irrespective of the server's timezone.
1 parent 0662397 commit 529bbf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

functions/datetime/strtotime.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ function strtotime (text, now) {
2020
// * returns 2: 1130425202
2121
// * example 3: strtotime('last month', 1129633200);
2222
// * returns 3: 1127041200
23-
// * example 4: strtotime('2009-05-04 08:30:00');
24-
// * returns 4: 1241418600
23+
// * example 4: strtotime('2009-05-04 08:30:00 GMT');
24+
// * returns 4: 1241425800
2525
var parsed, match, year, date, days, ranges, len, times, regex, i;
2626

2727
if (!text) {

0 commit comments

Comments
 (0)