
(function(){
  'use strict';

  angular
    .module('everycent.common')
    .directive('ecAsDate', ecAsDate);

  ecAsDate.$inject = [];
  function ecAsDate(){
    var directive = {
      restrict:'A',
      require:'ngModel',
      link: link
    };
    return directive;

    function link(scope, element, attrs, ngModel){

      ngModel.$formatters.push(function(modelValue){
        return new Date(modelValue);
      });
      ngModel.$parsers.push(function(modelValue){
        return new Date(modelValue);
      });
    }
  }
})();

@@ -364,32 +364,156 @@
 on(modelValue)%7B%0A
+        // convert the date value to a timezone specific version%0A        var newModelValue = modelValue + 'T10:00:00-0400';%0A
         return n
@@ -512,33 +512,36 @@
 return new Date(
-m
+newM
 odelValue);%0A    
@@ -542,24 +542,25 @@
 ;%0A      %7D);%0A
+%0A
       ngMode

Fix the issue with dates not being in the correct timezone