Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Time.now undefined method #14

Closed
ghost opened this issue May 27, 2020 · 0 comments
Closed

Time.now undefined method #14

ghost opened this issue May 27, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented May 27, 2020

Hello

I found a bug when to create document, it seem problem on timestamp that use function Time.now which deprecated in crystal 0.33.

https://crystal-lang.org/api/0.33.0/Time.html

the message

Which expanded to:

 > 10 | if _id
 > 11 |   __run_before_update
 > 12 |   @updated_at = Time.now.to_utc
                             ^--
Error: undefined method 'now' for Time.class

Did you mean 'new'?
@ghost ghost mentioned this issue May 27, 2020
@ghost ghost closed this as completed May 28, 2020
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants