Skip to content

Commit 4c65f85

Browse files
shargonErik Zhang
authored andcommitted
Spanish fix (neo-project#86)
* Small date fix In countries like Spain, there are schedule changes throughout the year, and it could be a negative subtraction, although it is contemplated and would not fail, I think it is better to use times in utc * Translation fix
1 parent 6b8f04b commit 4c65f85

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

neo-gui/UI/MainForm.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ private void AddContractToListView(VerificationContract contract, bool selected
116116

117117
private void Blockchain_PersistCompleted(object sender, Block block)
118118
{
119-
persistence_time = DateTime.Now;
119+
persistence_time = DateTime.UtcNow;
120120
if (Program.CurrentWallet != null)
121121
{
122122
check_nep5_balance = true;
@@ -294,7 +294,7 @@ private void timer1_Tick(object sender, EventArgs e)
294294
{
295295
lbl_height.Text = $"{Blockchain.Default.Height}/{Blockchain.Default.HeaderHeight}";
296296
lbl_count_node.Text = Program.LocalNode.RemoteNodeCount.ToString();
297-
TimeSpan persistence_span = DateTime.Now - persistence_time;
297+
TimeSpan persistence_span = DateTime.UtcNow - persistence_time;
298298
if (persistence_span < TimeSpan.Zero) persistence_span = TimeSpan.Zero;
299299
if (persistence_span > Blockchain.TimePerBlock)
300300
{

neo-gui/UI/OptionsDialog.es-ES.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,6 @@
130130
<value>Aplicar</value>
131131
</data>
132132
<data name="$this.Text" xml:space="preserve">
133-
<value>Optiones</value>
133+
<value>Opciones</value>
134134
</data>
135135
</root>

0 commit comments

Comments
 (0)