Coder Social home page Coder Social logo

michaelahlers / angular-timezones Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lezuse/angular-timezone-js

12.0 12.0 13.0 835 KB

AngularJS features for TimezoneJS-enhanced JavaScript Date objects.

License: MIT License

JavaScript 41.53% Makefile 56.42% Shell 2.05%

angular-timezones's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

angular-timezones's Issues

Replace full path in Bower dependencies with version only

With bower, installation is failing on Windows because of a full path being hard-coded in the list of dependencies:

The following:

{
  "dependencies" : {
    ...
    "timezone-js" : "[email protected]:mde/timezone-js.git#v0.4.4"
  }
}

should be replaced by something like (as other dependencies):

{
  "dependencies" : {
    ...
    "timezone-js" : "0.4.4"
  }
}

Testing locally it works like a charm.

Introduce Unit Tests

Some lightweight unit testing is appropriate, especially with some refactoring I'd like to do.

Resolve Complete Timezone Definition

Introduce a service method that can be used to resolve Olson names and abbreviations to complete timezone definitions objects that include (among other fields) the offset, printable label, abbreviation (e.g., EST, CDT). This will be useful to future additions, such as timezone pickers.

Minification issue

Greetings!... i've been using this great module on a project without any problems, until i minified the app. I'm using $filter('tzAlign') but this gives

Error: [$injector:unpr] Unknown provider: aProvider <- a <- tzAlignFilter

The weird thing is that i inspected the minified js and the tzAlign filter is declared. Other filters like uppercase are working fine. I guess that ultimately i could use the unminified version of the module, at least no mangled, but i'm trying to reduce the load time of the app. So, what other solution may be?

Support the "Factory" Timezone

There is a rarely used, obscure timezone simply called "Factory" that acts as a synonym for GMT offset 0. Arthur David Olson describes it as follows.

For companies who don't want to put time zone specification in their installation procedures. When users run date, they'll get the message. Also useful for the "comp.sources" version.

This will require some special cases, but is so rarely used that we won't support or test for it now.

License missing

I would like to use angular-timezones in my project, but I don't want to do a code theft. Could you add a license file or just a license info so that we know how could we use that library?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.