Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asset/btc: fix format time for assetdb-backup/btc filepath #3056

Merged
merged 1 commit into from
Nov 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/asset/btc/spv_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ func (w *spvWallet) connect(ctx context.Context, wg *sync.WaitGroup) (err error)
// moveWalletData will move all wallet files to a backup directory, but leaving
// the logs folder.
func (w *spvWallet) moveWalletData(backupDir string) error {
timeString := time.Now().Format("2006-01-02T15:04:05")
timeString := time.Now().Format("2006-01-02T15_04_05")
backupFolder := filepath.Join(backupDir, w.chainParams.Name, timeString)
err := os.MkdirAll(backupFolder, 0744)
if err != nil {
Expand Down
Loading