mirror of
https://github.com/C9Glax/tranga.git
synced 2025-06-13 23:07:53 +02:00
[postgres-Server-V2] feat: Convert DateTime.Now calls to UtcNow
This commit is contained in:
@ -97,7 +97,7 @@ public class Bato : MangaConnector
|
||||
if (!uint.TryParse(
|
||||
document.DocumentNode.SelectSingleNode("//span[text()='Original Publication:']/..").LastChild.InnerText.Split('-')[0],
|
||||
out uint year))
|
||||
year = (uint)DateTime.Now.Year;
|
||||
year = (uint)DateTime.UtcNow.Year;
|
||||
|
||||
string status = document.DocumentNode.SelectSingleNode("//span[text()='Original Publication:']/..")
|
||||
.ChildNodes[2].InnerText;
|
||||
|
@ -127,7 +127,7 @@ public class MangaKatana : MangaConnector
|
||||
while (description.StartsWith('\n'))
|
||||
description = description.Substring(1);
|
||||
|
||||
uint year = (uint)DateTime.Now.Year;
|
||||
uint year = (uint)DateTime.UtcNow.Year;
|
||||
string yearString = infoTable.Descendants("div").First(d => d.HasClass("updateAt"))
|
||||
.InnerText.Split('-')[^1];
|
||||
|
||||
|
Reference in New Issue
Block a user