Skip to content

Commit

Permalink
fixing filenames for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Janis Erdmanis committed Jun 21, 2024
1 parent c9ec769 commit 24fa029
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/Client/store.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ end

function store!(store::AccountStore, spec::DemeSpec)

tstamp = Dates.format(spec.seal.timestamp, "yyyy-mm-ddTHH:MM")
#tstamp = Dates.format(spec.seal.timestamp, "yyyy-mm-ddTHH:MM")
tstamp = Dates.format(spec.seal.timestamp, "yyyy-mm-dd_HH-MM")

path = joinpath(base_path(store), "demespec_$tstamp.json")

Expand Down Expand Up @@ -112,7 +113,8 @@ end

function store!(store::AccountStore, membership::Membership)

tstamp = Dates.format(membership.approval.timestamp, "yyyy-mm-ddTHH:MM")
#tstamp = Dates.format(membership.approval.timestamp, "yyyy-mm-ddTHH:MM")
tstamp = Dates.format(membership.approval.timestamp, "yyyy-mm-dd_HH-MM")

path = joinpath(base_path(store), "registration", "membership_$tstamp.json")

Expand Down Expand Up @@ -161,7 +163,8 @@ end
function store!(store::AccountStore, commit::Commit{ChainState})

index = index_string(commit.state.index)
tstamp = Dates.format(commit.seal.timestamp, "yyyy-mm-ddTHH:MM")
#tstamp = Dates.format(commit.seal.timestamp, "yyyy-mm-ddTHH:MM")
tstamp = Dates.format(commit.seal.timestamp, "yyyy-mm-dd_HH-MM")

path = joinpath(base_path(store), "commits", "$(index)_$tstamp.json")

Expand Down Expand Up @@ -323,7 +326,8 @@ end
function store!(store::ProposalStore, commit::Commit{BallotBoxState})

index = index_string(commit.state.index)
tstamp = Dates.format(commit.seal.timestamp, "yyyy-mm-ddTHH:MM")
#tstamp = Dates.format(commit.seal.timestamp, "yyyy-mm-ddTHH:MM")
tstamp = Dates.format(commit.seal.timestamp, "yyyy-mm-dd_HH-MM")

path = joinpath(store.dir, "commits", "$(index)_$tstamp.json")

Expand Down

0 comments on commit 24fa029

Please sign in to comment.