/*
 * Copyright 2000-2011 JetBrains s.r.o.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package jetbrains.buildServer.nuget.server.feed.server.index;

import jetbrains.buildServer.util.Dates;
import org.jetbrains.annotations.NotNull;

import java.util.Date;
import java.util.TimeZone;

/**
 * @author Eugene Petrenko (eugene.petrenko@gmail.com)
 *         Date: 24.11.11 13:09
 */
public class ODataDataFormat {
  @NotNull
  public static String formatDate(@NotNull final Date date) {
    //TODO:fix timezone printing
    return Dates.formatDate(date, "yyyy-MM-dd'T'HH:mm:ss'Z'", TimeZone.getTimeZone("GMT"));
  }
}

@@ -680,50 +680,8 @@
 %0D%0A%0D%0A
-import jetbrains.buildServer.util.Dates;%0D%0A
 impo
@@ -748,36 +748,8 @@
 te;%0D
-%0Aimport java.util.TimeZone;%0D
 %0A%0D%0A/
@@ -961,127 +961,34 @@
     
-//TODO:fix timezone printing%0D%0A    return Dates.formatDate(date, %22yyyy-MM-dd'T'HH:mm:ss'Z'%22, TimeZone.getTimeZone(%22GMT%22)
+return %22j%22 + date.getTime(
 );%0D%0A

switch to new date format to speedup parsing