{
"id": "cs-datetime-now",
"language": "csharp",
"group": "style",
"listingTitle": "Prefer unambiguous C# timestamps",
"title": "Prefer unambiguous C# timestamps",
"mvvm": false,
"defaultSeverity": "info",
"legacyGroup": "nim-style",
"why": "DateTime.Now omits an explicit offset and can become ambiguous across time-zone and daylight-saving transitions.",
"suggestion": "Use DateTimeOffset.Now when the local offset matters or DateTime.UtcNow for UTC-based processing.",
"version": 6,
"semanticMaturity": "text",
"securityKind": "none",
"taxonomy": [
"style"
],
"requirements": [
"sourceText"
],
"packs": [
"csharp"
],
"implementation": "src/languages/csharp/rules.rs",
"languages": [
"csharp"
],
"frameworks": [],
"languageVersions": [],
"limitations": [
"Only direct DateTime.Now references are recognized; aliases and custom clock abstractions require type resolution."
]
}