summaryrefslogtreecommitdiff
path: root/ext/date/date_strptime.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/date/date_strptime.c')
-rw-r--r--ext/date/date_strptime.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/date/date_strptime.c b/ext/date/date_strptime.c
index 00e03e9..877baea 100644
--- a/ext/date/date_strptime.c
+++ b/ext/date/date_strptime.c
@@ -426,9 +426,7 @@ date__strptime_internal(const char *str, size_t slen,
if (sign == -1)
n = f_negate(n);
set_hash("seconds",
- rb_rational_new2(n,
- f_expt(INT2FIX(10),
- INT2FIX(3))));
+ rb_rational_new2(n, INT2FIX(1000)));
goto matched;
}