Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

add logic to extract date from filename #491

Merged
merged 10 commits into from
Apr 25, 2022
Merged

Conversation

abhinavkgrd
Copy link
Member

@abhinavkgrd abhinavkgrd commented Apr 25, 2022

Description

^ title

Test Plan

tested for these sample


_screenshots_ 
Screenshot_20181227-152914.jpg =>  
Date Thu Dec 27 2018 15:29:14 GMT+0530 (India Standard Time)

_Whatsapp images and videos_
IMG-20190330-WA0002(1).jpg  =>  
Date Sat Mar 30 2019 00:00:00 GMT+0530 (India Standard Time)

IMG-20171218-WA0028.jpg  =>  
Date Mon Dec 18 2017 00:00:00 GMT+0530 (India Standard Time)

VID-20171218-WA0028.mp4  =>  
Date Mon Dec 18 2017 00:00:00 GMT+0530 (India Standard Time)

_google motion photos_ 
IMG_20130816_145041-MOTION(1).gif  =>  
Date Fri Aug 16 2013 14:50:41 GMT+0530 (India Standard Time)

VID-WA0028.mp4  =>  
Invalid Date

2014-08-25_17.15.33.jpg  =>  
Date Mon Aug 25 2014 17:15:33 GMT+0530 (India Standard Time)

IMG-20161224-WA0014.jpg  =>  
Date Sat Dec 24 2016 00:00:00 GMT+0530 (India Standard Time)

VID-20161223-WA0000.mp4  =>  
Date Fri Dec 23 2016 00:00:00 GMT+0530 (India Standard Time)

_signal files_ 
signal-2018-08-21-100217.jpg  =>  
Date Tue Aug 21 2018 10:02:17 GMT+0530 (India Standard Time)

signal-2020-05-07-222654.mp4  =>  
Date Thu May 07 2020 22:26:54 GMT+0530 (India Standard Time)

_MacBook screen recordings_
Screenshot 2022-02-23 at 2.59.39 PM.mp4
Date Wed Feb 23 2022 02:59:39 GMT+0530 (India Standard Time)

@cloudflare-pages
Copy link

cloudflare-pages bot commented Apr 25, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: fec2970
Status: ✅  Deploy successful!
Preview URL: https://7c220042.bada-frame.pages.dev

View logs

@abhinavkgrd abhinavkgrd requested a review from ua741 April 25, 2022 08:15
ua741
ua741 previously approved these changes Apr 25, 2022
src/services/upload/metadataService.ts Show resolved Hide resolved
src/services/upload/metadataService.ts Show resolved Hide resolved
src/utils/time/index.ts Show resolved Hide resolved
@abhinavkgrd abhinavkgrd merged commit edf347a into master Apr 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants