> On 2019-Sep-25, at 14:45 , fugee ohu <[email protected]> wrote: > > > > On Friday, September 20, 2019 at 5:13:44 PM UTC-4, Colin Law wrote: > On Fri, 20 Sep 2019 at 18:10, fugee ohu <[email protected] <>> wrote: > > > > How do I keep a record of the original creation date? What if I wanna > > preserve the original creation date? > od > Each record in the database has a created_at field. At least mine do. > > Colin > > I want the creation date of file before it's uploaded Can you tell me how to > find it I know it has something to do with ruby mtime function
You can't get that information in the browser. The best you could do is the lastModified <https://developer.mozilla.org/en-US/docs/Web/API/File/lastModified> time of the file. https://developer.mozilla.org/en-US/docs/Web/API/File <https://developer.mozilla.org/en-US/docs/Web/API/File> https://developer.mozilla.org/en-US/docs/Web/API/File/lastModified <https://developer.mozilla.org/en-US/docs/Web/API/File/lastModified> -Rob -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/68360982-1BA8-45C7-A68B-EB2B4D2D8D89%40gmail.com.

