enfany
enfany

Reputation: 895

How to convert UTC time to EST time in App Engine Java

I realized that GAE datastore automatically converts the time to UTC time. It is somehow converted back when displaying on client side. However, when I get the time on server side, it is still using the UTC time.

I know in python we can use this utility http://timezones.appspot.com/ but my application was written in Java and it uses Objectify to communicate with appengine datastore.

Is there any Java classes that convert the UTC time back to EST time on the server side?

Upvotes: 2

Views: 506

Answers (1)

BillMan
BillMan

Reputation: 9934

I believe you can use JodaTime (http://joda-time.sourceforge.net/) which is the default answer for most Java data questions.

Upvotes: 1

Related Questions