Skip to content

Commit

Permalink
Add WhatsApp Desktop Support.
Browse files Browse the repository at this point in the history
  • Loading branch information
joepitt91 committed Aug 11, 2017
1 parent afe6465 commit bbe24f6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion DateFix.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
Recursively Process C:\Users\Username\Pictures\ with verbose output.
.NOTES
Author : Joe Pitt
Version : v1.3 (2017-01-17)
Version : v1.4 (2017-08-11)
License : DateFix by Joe Pitt is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
.LINK
https://www.joepitt.co.uk/Project/DateFix/
Expand Down Expand Up @@ -417,6 +417,15 @@ foreach ($file in $files)
Write-Verbose " > $NewName"
break
}

# WhatsApp Image/Video yyyy-mm-dd at hh.mm.ss
'^WhatsApp (Image|Video) [0-9]{4}-[0-9]{2}-[0-9]{2} at [0-9]{2}.[0-9]{2}.[0-9]{2}$'
{
Write-Verbose " Match: WhatsApp Image/Video yyyy-mm-dd at hh.mm.ss"
$NewName = $NewName.Substring(15,4) + $NewName.Substring(20,2) + $NewName.Substring(23,2) + "_" + $NewName.Substring(29,2) + $NewName.Substring(32,2) + $NewName.Substring(35,2)
Write-Verbose " > $NewName"
break
}

# UNKNOWN FORMAT
default
Expand Down

0 comments on commit bbe24f6

Please sign in to comment.