fixed incorrect 'G' in the format parameter string
In the format parameter string, 'G' should have represented 24-hour format of an hour WITHOUT leading zeros. But it actually results in 24-hour format of an hour WITH leading zeros.
This commit is contained in:
parent
ad559ae1f5
commit
d34da1d107
1 changed files with 1 additions and 1 deletions
|
@ -522,7 +522,7 @@ format([$g|T], {_,{H,_,_}}=Dt, Acc) when H > 12 ->
|
||||||
format([$g|T], {_,{H,_,_}}=Dt, Acc) ->
|
format([$g|T], {_,{H,_,_}}=Dt, Acc) ->
|
||||||
format(T, Dt, [itol(H)|Acc]);
|
format(T, Dt, [itol(H)|Acc]);
|
||||||
format([$G|T], {_,{H,_,_}}=Dt, Acc) ->
|
format([$G|T], {_,{H,_,_}}=Dt, Acc) ->
|
||||||
format(T, Dt, [pad2(H)|Acc]);
|
format(T, Dt, [itol(H)|Acc]);
|
||||||
format([$h|T], {_,{H,_,_}}=Dt, Acc) when H > 12 ->
|
format([$h|T], {_,{H,_,_}}=Dt, Acc) when H > 12 ->
|
||||||
format(T, Dt, [pad2(H-12)|Acc]);
|
format(T, Dt, [pad2(H-12)|Acc]);
|
||||||
format([$h|T], {_,{H,_,_}}=Dt, Acc) ->
|
format([$h|T], {_,{H,_,_}}=Dt, Acc) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue