Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1041027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:17:51+00:00 2026-05-16T15:17:51+00:00

I am producing a google calendar query string that requires an atom fomatted date.

  • 0

I am producing a google calendar query string that requires an atom fomatted date.

I am using php 5.1.6, and date(DATE_ATOM) to produce the correctly formatted current date. So, for instance, in the unencoded url part of the query has:

start-max=2010-09-02T10:25:58+01:00

I need to rawurlencode this and it becomes

start-max%3D2010-09-02T11%253A37%253A59%252B01%253A00 

Now if I rawurldecode this it becomes

start-max=2010-09-02T11%3A39%3A35%2B01%3A00

So it hasn’t decoded properly and google rejects the query…

If I rawurldecode the query twice the date is decoded but the original ‘+’ is replaced with a space ( even though it is still encoded in the above string)

The same is true for urlencode/urldecode 🙁

Any ideas how to encode / decode the URL with this date format in it?

Cheers

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T15:17:52+00:00Added an answer on May 16, 2026 at 3:17 pm

    Cannot reproduce:

    $ php -r 'echo rawurlencode("start-max=2010-09-02T10:25:58+01:00").PHP_EOL;'
    start-max%3D2010-09-02T10%3A25%3A58%2B01%3A00
    $ php -r 'echo rawurlencode(rawurlencode("start-max=2010-09-02T10:25:58+01:00")).PHP_EOL;'
    start-max%253D2010-09-02T10%253A25%253A58%252B01%253A00
    
    $ php -r 'echo rawurldecode(rawurlencode("start-max=2010-09-02T10:25:58+01:00")).PHP_EOL;'
    start-max=2010-09-02T10:25:58+01:00
    $ php -r 'echo urldecode(urlencode("start-max=2010-09-02T10:25:58+01:00")).PHP_EOL;'
    start-max=2010-09-02T10:25:58+01:00
    

    So, probably you’re rawurlencode’ing the value, and then the whole string:

    $ php -r 'echo rawurlencode("start-max=".rawurlencode("2010-09-02T10:25:58+01:00")).PHP_EOL;'
    start-max%3D2010-09-02T10%253A25%253A58%252B01%253A00
    

    …which could be desired behavior if you’re sending a complete url in an get variable, but more probably you have a logical error somewhere.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How would you go about producing reports by user selected date ranges in a
This simple code is not producing any sound on a couple of machines that
We have a large management software that is producing big reports of all kinds,
In my current project, I'm producing weekly releases. I've been using the technique described
There are a lot of websites that look professional in Google results. Try searching
I am producing a script that others will put in their websites. It is
there's a RESTful service which is Producing text/plain and I want to add that
I am reading data from a special device that is producing around 20 MB/s
We are producing a portable code (win+macOs) and we are looking at how to
I'm producing a hex file to run on an ARM processor which I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.