News for hackers. Stuff that matters.
Re:If you're using YYYY in your JVM service or %G in anythin... by claar on Monday December 29, 2014 @11:26AM (#8810391)

  Unix date command: Use +%Y instead of +%G
  Java: Use yyyy instead of YYYY
  Python: Use %Y (ISO-8601 year number is not available)
  PHP: Use Y instead of o
Please contribute other languages in replies and I will add them.

(edit: This post had originally suggested the post's title be changed to mention Java, thus vitno's reply below)

Re:If you're using YYYY in your JVM service or %G in anythin... by hobbified on Monday December 29, 2014 @01:16PM (#8810984)
Anything at all with strftime: Use %Y instead of %G. It's a C function, but many languages (Perl/Python/Ruby/etc.) expose it through their own datetime libraries.
Re:If you're using YYYY in your JVM service or %G in anythin... by vitno on Monday December 29, 2014 @11:27AM (#8810397)
although this post references Java, this doesn't just affect java. This affects anything that uses ISO 8601.
Re:If you're using YYYY in your JVM service or %G in anythin... by bbcbasic on Tuesday December 30, 2014 @10:53PM (#8818188)
.NET: Use yyyy (ISO-8601 year number is not available)