Tagged articles
3 articles
Page 1 of 1
Java Architect Essentials
Java Architect Essentials
May 17, 2025 · Backend Development

Simplify SpringBoot Time Handling with @DateTimeFormat Annotation

This article explains how SpringBoot’s @DateTimeFormat annotation automatically converts timestamps and date strings to Date, LocalDate, or LocalDateTime objects, eliminating manual parsing code, and provides practical examples ranging from simple date parameters to custom datetime patterns for more efficient backend development.

@DateTimeFormatBackend DevelopmentJava
0 likes · 7 min read
Simplify SpringBoot Time Handling with @DateTimeFormat Annotation
Programmer DD
Programmer DD
Sep 21, 2022 · Backend Development

Why Does Java’s Date Show an 8‑Hour Shift? Uncovering Timezone Pitfalls

An online promotion that should end at 23:59:59 displayed as finished early due to an 8‑hour discrepancy, traced through HTTP packet capture, DB fields, and Java’s Date handling, revealing that Date objects use the local timezone while timestamps are based on UTC, causing mismatched calculations.

DebuggingJavaTime Conversion
0 likes · 8 min read
Why Does Java’s Date Show an 8‑Hour Shift? Uncovering Timezone Pitfalls