Skip to content
This repository was archived by the owner on Nov 15, 2017. It is now read-only.

Add expires for midnight.#354

Closed
istickz wants to merge 1 commit intocarhartl:masterfrom
istickz:patch-1
Closed

Add expires for midnight.#354
istickz wants to merge 1 commit intocarhartl:masterfrom
istickz:patch-1

Conversation

@istickz
Copy link

@istickz istickz commented Mar 18, 2015

Add expires for midnight.
Use:
$.cookie('key', "value", { expires: 'midnight' });

Add expires for midnight.
Use:
$.cookie('key', "value", { expires: 'midnight' });
@istickz istickz changed the title Update jquery.cookie.js Add expires for midnight. Mar 18, 2015
@FagnerMartinsBrack
Copy link
Collaborator

We would like to avoid cluttering the codebase by abstracting the date definitions in strings.

You should handle the midnight rule externally and provide a proper date instance with the desired value.

@carhartl
Copy link
Owner

Agreeing, and closing. Thanks for the PR nonetheless!

@carhartl carhartl closed this Mar 18, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants