Weighing: Set Date/Time of scales at startup
Test / Run tests (push) Successful in 1m59s

This commit is contained in:
lorenz.stechauner committed 2026-08-01 23:41:18 +02:00
1 parent bc093f31db
commit d44d82a614
4 files changed
+10 -4

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@ namespace Elwig.Helpers.Weighing {
/// <returns>&lt;[GrossWeight-TaraWeight=]NetWeight/WeighingId/Date/Time&gt;</returns>
public override readonly string ToString() {
var w = NetWeight != null ? (GrossWeight != null && TareWeight != null ? $"{GrossWeight}-{TareWeight}=" : "") + $"{NetWeight}kg" : "";
return $"<{w}/{WeighingId}/{Date:yyyy-MM-dd}/{Time:HH:mm}>";
return $"<{w}/{WeighingId}/{Date:yyyy-MM-dd}/{Time:HH:mm:ss}>";
}
public readonly JsonObject ToJson() {