Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
Use Chinese for all communication and code comments.
Sign in to like and favorite skills
Use Chinese for all communication and code comments.
When adding or updating dependencies in
pubspec.yaml:
All time strings from the Discourse API are in UTC format. The project uses a unified
TimeUtils class (lib/utils/time_utils.dart) for all time parsing and formatting.
TimeUtils.parseUtcTime() to parse any time string from the API. It handles UTC-to-local conversion internally.TimeUtils.formatRelativeTime() / formatDetailTime() / formatCompactTime() / formatShortDate() / formatFullDate() for display.DateTime.parse() or DateTime.tryParse() directly in model or UI code..toLocal() outside of TimeUtils.createdAt: TimeUtils.parseUtcTime(json['created_at'] as String?),
createdAt: DateTime.parse(json['created_at'] as String), createdAt: DateTime.tryParse(json['created_at'] as String? ?? ''),