Update listings to use date strings instead of timestamps #32
Added support for RFC 3339 date string conversion. Updated dummy script to use moment.js to create RFC date strings.
Change-Id: I98324ddf19b20e6746eab7a576c57c67c96e8ae1 Signed-off-by: Martin Lowe martin.lowe@eclipse-foundation.org
Merge request reports
Activity
Filter activity
7 package org.eclipsefoundation.marketplace.helper; 8 9 import java.text.ParseException; 10 import java.text.SimpleDateFormat; 11 import java.util.Date; 12 13 import org.slf4j.Logger; 14 import org.slf4j.LoggerFactory; 15 16 /** 17 * Central implementation for handling date time conversion in the service. 18 * Class needs to be instantiated as DateFormat objects are not safe by nature. 19 * 20 * @author Martin Lowe 21 */ 22 public class DateTimeHelper { 7 package org.eclipsefoundation.marketplace.helper; 8 9 import java.text.ParseException; 10 import java.text.SimpleDateFormat; 11 import java.util.Date; 12 13 import org.slf4j.Logger; 14 import org.slf4j.LoggerFactory; 15 16 /** 17 * Central implementation for handling date time conversion in the service. 18 * Class needs to be instantiated as DateFormat objects are not safe by nature. 19 * 20 * @author Martin Lowe 21 */ 22 public class DateTimeHelper {
Please register or sign in to reply