File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
app/src/main/java/com/lagradost/cloudstream3/utils Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11package com.lagradost.cloudstream3.utils
22
3- import android.annotation.SuppressLint
43import android.content.Context
54import android.net.Uri
65import android.widget.Toast
@@ -40,6 +39,7 @@ import java.io.PrintWriter
4039import java.lang.System.currentTimeMillis
4140import java.text.SimpleDateFormat
4241import java.util.Date
42+ import java.util.Locale
4343
4444object BackupUtils {
4545
@@ -164,7 +164,6 @@ object BackupUtils {
164164 }
165165 }
166166
167- @SuppressLint(" SimpleDateFormat" )
168167 fun backup (context : Context ? ) = ioSafe {
169168 if (context == null ) return @ioSafe
170169
@@ -177,7 +176,7 @@ object BackupUtils {
177176 return @ioSafe
178177 }
179178
180- val date = SimpleDateFormat (" yyyy_MM_dd_HH_mm" ).format(Date (currentTimeMillis()))
179+ val date = SimpleDateFormat (" yyyy_MM_dd_HH_mm" , Locale .getDefault() ).format(Date (currentTimeMillis()))
181180 val displayName = " CS3_Backup_${date} "
182181 val backupFile = getBackup(context)
183182 val stream = setupBackupStream(context, displayName)
You can’t perform that action at this time.
0 commit comments