Skip to content

Commit

Permalink
Move constant to the only class that uses it
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-richardson committed Feb 22, 2016
1 parent 76dae59 commit f34fa3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

public final class DeploymentsProvider {

public static final String OCTOPUS_DATE_FORMAT = "yyyy-MM-ddHH:mm:ss.SSSZ";
private final HttpContentProvider contentProvider;
private final Logger LOG;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
package com.mjrichardson.teamCity.buildTriggers;

import com.mjrichardson.teamCity.buildTriggers.DeploymentComplete.DeploymentsProvider;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;

public class OctopusDate {
//todo: move local?
DateTimeFormatter dateFormat = DateTimeFormat.forPattern(DeploymentsProvider.OCTOPUS_DATE_FORMAT);//2015-12-08T08:09:39.624+00:00
private static final String OCTOPUS_DATE_FORMAT = "yyyy-MM-ddHH:mm:ss.SSSZ";//2015-12-08T08:09:39.624+00:00
DateTimeFormatter dateFormat = DateTimeFormat.forPattern(OCTOPUS_DATE_FORMAT);
public DateTime dateTime;

public OctopusDate(String s) {
Expand Down

0 comments on commit f34fa3e

Please sign in to comment.